public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48086] New: bootstrap-lto creates c-common.s with too many sections on x86_64-apple-darwin10
@ 2011-03-12  2:15 howarth at nitro dot med.uc.edu
  2011-03-12  2:16 ` [Bug lto/48086] " howarth at nitro dot med.uc.edu
                   ` (24 more replies)
  0 siblings, 25 replies; 26+ messages in thread
From: howarth at nitro dot med.uc.edu @ 2011-03-12  2:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48086

           Summary: bootstrap-lto creates c-common.s with too many
                    sections on x86_64-apple-darwin10
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: howarth@nitro.med.uc.edu


The number of sections in mach-o has always been restricted to 255. The mach-o
nlist struct has a one byte n_sect field whichis the index of the section that
symbol is in. Previous to Xcode 4.0, the assembler did not validate that the
n_sect field was not overflowed but now does. This causes the lto-bootstrap on
x86_64-apple-darwin10 to fail with...

/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/xgcc
-B/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/bin/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/bin/
-B/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/lib/ -isystem
/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/include -isystem
/sw/lib/gcc4.6/x86_64-apple-darwin10.7.0/sys-include    -c  -DIN_GCC_FRONTEND
-DIN_GCC_FRONTEND -DIN_GCC_FRONTEND -g -O2 -mdynamic-no-pic -flto=jobserver
-frandom-seed=1 -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual
-Wstrict-prototypes -Wmissing-prototypes  -Wold-style-definition -Wc++-compat
-fno-common  -DHAVE_CONFIG_H -I. -Ic-family -I../../gcc-4.6-20110311/gcc
-I../../gcc-4.6-20110311/gcc/c-family -I../../gcc-4.6-20110311/gcc/../include
-I../../gcc-4.6-20110311/gcc/../libcpp/include -I/sw/include -I/sw/include 
-I../../gcc-4.6-20110311/gcc/../libdecnumber
-I../../gcc-4.6-20110311/gcc/../libdecnumber/dpd -I../libdecnumber
-I/sw/include  -I/sw/include -DCLOOG_INT_GMP -DCLOOG_ORG -I/sw/include
../../gcc-4.6-20110311/gcc/c-family/c-common.c -o c-family/c-common.o
/var/tmp//ccYAptak.s:297257:FATAL:too many sections (maximum 255)

make[3]: *** [c-family/c-common.o] Error 1
make[2]: *** [all-stage2-gcc] Error 2
make[1]: *** [stage2-bubble] Error 2
make: *** [all] Error 2

which, with -v, appears as....

/sw/src/fink.build/gcc46-4.6.0-1000/darwin_objdir/./prev-gcc/as -arch x86_64
-force_cpusubtype_ALL -o c-family/c-common.o c-common.s
c-common.s:298717:FATAL:too many sections (maximum 255)


^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2011-05-30  9:14 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-12  2:15 [Bug lto/48086] New: bootstrap-lto creates c-common.s with too many sections on x86_64-apple-darwin10 howarth at nitro dot med.uc.edu
2011-03-12  2:16 ` [Bug lto/48086] " howarth at nitro dot med.uc.edu
2011-03-12  3:57 ` howarth at nitro dot med.uc.edu
2011-03-12  9:11 ` dominiq at lps dot ens.fr
2011-03-12  9:56 ` iains at gcc dot gnu.org
2011-03-12 11:32 ` iains at gcc dot gnu.org
2011-03-12 22:49 ` howarth at nitro dot med.uc.edu
2011-03-13  8:16 ` fxcoudert at gcc dot gnu.org
2011-03-13  9:59 ` steven at gcc dot gnu.org
2011-03-13 10:08 ` iains at gcc dot gnu.org
2011-03-13 19:49 ` steven at gcc dot gnu.org
2011-03-13 20:19 ` iains at gcc dot gnu.org
2011-03-13 20:33 ` iains at gcc dot gnu.org
2011-03-13 20:41 ` steven at gcc dot gnu.org
2011-03-13 20:54 ` iains at gcc dot gnu.org
2011-03-13 21:54 ` howarth at nitro dot med.uc.edu
2011-03-13 22:46 ` howarth at nitro dot med.uc.edu
2011-03-14  2:48 ` mrs at gcc dot gnu.org
2011-03-14  2:55 ` mrs at gcc dot gnu.org
2011-03-14  2:58 ` howarth at nitro dot med.uc.edu
2011-03-14  3:09 ` mikestump at comcast dot net
2011-03-14  6:10 ` howarth at nitro dot med.uc.edu
2011-03-16 18:24 ` mrs at gcc dot gnu.org
2011-03-16 18:34 ` mrs at gcc dot gnu.org
2011-04-18 21:27 ` mrs at gcc dot gnu.org
2011-05-30  9:21 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).