This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use .init_array, .fini_array sections for ARM EABI (broke-target=avr)


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]