This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI (broke-target=avr)
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Paul Schlie <schlie at comcast dot net>, Mark Mitchell <mark at codesourcery dot com>, Paul Brook <paul at codesourcery dot com>, Julian Brown <julian at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 30 Apr 2005 20:40:40 +0000 (UTC)
- Subject: Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI (broke-target=avr)
- References: <20050430195601.GA7707@nevyn.them.org> <BE99611B.9FFB%schlie@comcast.net><20050430203631.GA8713@nevyn.them.org>
On Sat, 30 Apr 2005, Daniel Jacobowitz wrote:
> > The definition/use of __main is now dependant on INIT_ARRAY_SECTION_ASM_OP
> > HAS_INIT_SECTION , and .init_array, resulting in __main not being defined as
> > presumed by the avr when linking; and may possibly affect other things but
> > haven't gotten that far yet.
> >
> > (a fix may be as simple as defining HAS_INIT_SECTION in libgcc2.c
> > regardless of INIT_ARRAY_SECTION_ASM_OP, but not really sure?)
>
> You're going to have to provide more details, since I can't see how the
> patch could cause the problem you're describing.
>
> Error messages, preprocessed source, and all the other sorts of details
> that a bug report normally requires, please.
Bootstrap on hppa2.0w-hpux fails today with:
stage1/xgcc -Bstage1/
-B/scratch/gcc/nightly-2005-04-30-mainline/hppa2.0w-hp-hpux11.11/build_gcc/install/hppa2.0w-hp-hpux11.11/bin/
-g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -fno-common -DHAVE_CONFIG_H
-DGENERATOR_FILE -o build/genmodes \
build/genmodes.o build/errors.o
../build-hppa2.0w-hp-hpux11.11/libiberty/libiberty.a
/usr/ccs/bin/ld: Unsatisfied symbols:
__main (first referenced in build/genmodes.o) (code)
collect2: ld returned 1 exit status
make[2]: *** [build/genmodes] Error 1
This may or may not relate to the quoted garbled description of symptoms
on avr; I haven't yet investigated it further.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)