[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread giffordj at la dot twcbc dot com

--- Additional Comments From giffordj at la dot twcbc dot com  2009-08-07 
07:50 ---
This build has using Binutils from CVS 8/4/2009 (No Additional Patches), with
GCC 4.4.1 branded with CLFS date tags.

root:/var/build_system/work/gcc-build/gcc$ gcc -isystem /usr/include -m32   -g
-fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wcast-qual -Wold-style-definition -Wc++-compat
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -Wl,-rpath-link,/lib -m32 
-Wl,--relax -o cc1-dummy c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o
c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o
c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o
c-pch.o c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o
c-omp.o dummy-checksum.o   main.o tree-browser.o libbackend.a
../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a  
../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -Lyes/lib -Lyes/lib
-lmpfr -lgmp -ldl -v -Wl,-v
Reading specs from /tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/specs
Target: powerpc-unknown-linux-gnu
Configured with: /mnt/clfs/var/build_system/work/gcc-4.4.1/configure
--prefix=/tools --build=x86_64-unknown-linux-gnu
--host=powerpc-unknown-linux-gnu --target=powerpc-unknown-linux-gnu
--with-local-prefix=/tools --enable-long-long --enable-c99 --enable-shared
--enable-threads=posix --enable-__cxa_atexit --disable-nls
--enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib
--with-long-double-128
Thread model: posix
gcc version 4.4.1 (GCC for Cross-LFS 4.4.1.20090802)
COMPILER_PATH=/tools/libexec/gcc/powerpc-unknown-linux-gnu/4.4.1/:/tools/libexec/gcc/powerpc-unknown-linux-gnu/4.4.1/:/tools/libexec/gcc/powerpc-unknown-linux-gnu/:/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/:/tools/lib/gcc/powerpc-unknown-linux-gnu/:/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/../../../../powerpc-unknown-linux-gnu/bin/
LIBRARY_PATH=/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/:/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/../../../../powerpc-unknown-linux-gnu/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-isystem' '/usr/include' '-g' '-fkeep-inline-functions'
'-DIN_GCC' '-W' '-Wall' '-Wwrite-strings' '-Wstrict-prototypes'
'-Wmissing-prototypes' '-Wcast-qual' '-Wold-style-definition' '-Wc++-compat'
'-Wmissing-format-attribute' '-pedantic' '-Wno-long-long' '-Wno-variadic-macros'
'-Wno-overlength-strings' '-fno-common' '-DHAVE_CONFIG_H' '-m32' '-o'
'cc1-dummy' '-Lyes/lib' '-Lyes/lib' '-v'
 /tools/libexec/gcc/powerpc-unknown-linux-gnu/4.4.1/collect2 --eh-frame-hdr -V
-Qy -m elf32ppclinux --hash-style=both -dynamic-linker /lib/ld.so.1 -o cc1-dummy
/usr/lib/crt1.o /usr/lib/crti.o
/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/crtbegin.o -Lyes/lib -Lyes/lib
-L/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1
-L/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/../../../../powerpc-unknown-linux-gnu/lib
-rpath-link /lib --relax c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o
c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o
c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o
c-pch.o c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o
c-omp.o dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -lmpfr -lgmp -ldl -v -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/crtend.o /usr/lib/crtn.o
collect2 version 4.4.1 (PowerPC GNU/Linux)
/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/../../../../powerpc-unknown-linux-gnu/bin/ld
--eh-frame-hdr -V -Qy -m elf32ppclinux --hash-style=both -dynamic-linker
/lib/ld.so.1 -o cc1-dummy /usr/lib/crt1.o /usr/lib/crti.o
/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/crtbegin.o -Lyes/lib -Lyes/lib
-L/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1
-L/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/../../../../powerpc-unknown-linux-gnu/lib
-rpath-link /lib --relax c-lang.o stub-objc.o attribs.o c-errors.o c-lex.o
c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-opts.o
c-format.o c-semantics.o c-ppoutput.o c-cppbuiltin.o c-objc-common.o c-dump.o
c-pch.o c-parser.o rs6000-c.o c-gimplify.o tree-mudflap.o c-pretty-print.o
c-omp.o dummy-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a
../libdecnumber/libdecnumber.a ../libcpp/libcpp.a ../libiberty/libiberty.a
../libdecnumber/libdecnumber.a -lmpfr -lgmp -ldl -v -lgcc --as-needed -lgcc_s
--no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed
/tools/lib/gcc/powerpc-unknown-linux-gnu/4.4.1/crtend.o /usr/lib/crtn.o
GNU ld (GNU Binutils for Cross-LFS - Retrieved on 20090804) 2.19.51.20090804
  Supported emulations:
   elf32ppclinux
   e

[Bug binutils/10494] strip modified vaddr of program headers in ePAPR Fixed Address Image Format

2009-08-07 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-08-07 
09:27 ---
That's one weird looking ELF image.  The root of the problem is in
_bfd_elf_make_section_from_shdr, where we set up section LMAs.  .whiteboard1 is
incorrectly assumed to belong with the first PT_LOAD header, since we only
compare section header file offsets against program header file offsets.

Testing a fix.

-- 
   What|Removed |Added

 AssignedTo|unassigned at sources dot   |amodra at bigpond dot net
   |redhat dot com  |dot au
 Status|NEW |ASSIGNED
   Last reconfirmed|-00-00 00:00:00 |2009-08-07 09:27:32
   date||


http://sourceware.org/bugzilla/show_bug.cgi?id=10494

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-08-07 
10:06 ---
Thanks, I'm now convinced you are using a new ld.  :)  Hmm, the -v output also
shows that gcc is passing --relax to ld anyway, so the automatic --relax code
isn't even a factor.  I don't know what else to suggest.  I know --relax works
for me.  If you make all the objects and libraries used by the failing link
available to me, I'll try linking them here.  (Add -Wl,-t and the linker will
tell you exactly which libraries.)  If that fails then finding the linker bug
will be easy.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread giffordj at la dot twcbc dot com

--- Additional Comments From giffordj at la dot twcbc dot com  2009-08-07 
15:37 ---
Created an attachment (id=4122)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4122&action=view)
Text File from Latest Test

Output with the last command suggested

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread giffordj at la dot twcbc dot com

--- Additional Comments From giffordj at la dot twcbc dot com  2009-08-07 
16:56 ---
Wasn't able to attach the file, put it's available through this link.

http://svn.jg555.com/build/alan.tar.bz2

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/10471] hidden symbol gets added to dynamic symbol table

2009-08-07 Thread ccoutant at google dot com

--- Additional Comments From ccoutant at google dot com  2009-08-07 22:56 
---
Created an attachment (id=4123)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4123&action=view)
Proposed patch

The attached patch is a proposed fix for PR 10471, where gold ends up putting a
local symbol in the dynamic symbol table when a DSO tries to reference a hidden
(or internal) symbol. In this patch, I issue a warning and refuse to resolve
the symbol, but the link completes successfully. For the included test case, we
get these warning messages:

gcctestdir/ld: warning: hidden symbol 'main_hidden' in hidden_test_main.o is
referenced by DSO libhidden.so
gcctestdir/ld: warning: internal symbol 'main_internal' in hidden_test_main.o
is referenced by DSO libhidden.so

I'm not sure whether these should be made errors (along with undefined symbol
errors, we'd want to see them all before terminating the link) or not.

For comparison, gnu ld prints a message (not sure whether it's a warning or an
error) about the first such symbol, then terminates with a mysterious error
message:

/usr/bin/ld: a.out: internal symbol `main_internal' in hidden_test_main.o is
referenced by DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output


-- 
   What|Removed |Added

 AssignedTo|ian at airs dot com |ccoutant at google dot com
 Status|NEW |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=10471

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread giffordj at la dot twcbc dot com

--- Additional Comments From giffordj at la dot twcbc dot com  2009-08-07 
23:53 ---
http://svn.jg555.com/build/binutils-2.19.51.tar.xz is a tarball of the binary I
created for binutils that I'm using for my build.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-08-07 
23:57 ---
$ wget http://svn.jg555.com/build/alan.tar.bz2
--09:24:01--  http://svn.jg555.com/build/alan.tar.bz2
   => `alan.tar.bz2'
Resolving svn.jg555.com... 64.183.102.12
Connecting to svn.jg555.com|64.183.102.12|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
09:24:02 ERROR 404: Not Found.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread giffordj at la dot twcbc dot com

--- Additional Comments From giffordj at la dot twcbc dot com  2009-08-08 
00:18 ---
Opened up the firewall, you should be able to get in now.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread amodra at bigpond dot net dot au

--- Additional Comments From amodra at bigpond dot net dot au  2009-08-08 
01:38 ---
Thanks, got it.  Reproduced here too, and looks like file sizes are such that
second relax pass wants to add more stubs, and something is going wrong.  
Looking..

-- 
   What|Removed |Added

   Last reconfirmed|2009-08-03 23:27:43 |2009-08-08 01:38:01
   date||


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/10474] relocation truncated to fit: R_PPC_REL24 errors

2009-08-07 Thread amodra at bigpond dot net dot au


-- 
   What|Removed |Added

 Status|REOPENED|ASSIGNED
   Last reconfirmed|2009-08-08 01:38:01 |2009-08-08 01:38:14
   date||


http://sourceware.org/bugzilla/show_bug.cgi?id=10474

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/10494] strip modified vaddr of program headers in ePAPR Fixed Address Image Format

2009-08-07 Thread cvs-commit at gcc dot gnu dot org

--- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-08-08 
01:43 ---
Subject: Bug 10494

CVSROOT:/cvs/src
Module name:src
Changes by: amo...@sourceware.org   2009-08-08 01:43:28

Modified files:
bfd: ChangeLog elf.c 

Log message:
PR 10494
* elf.c (_bfd_elf_make_section_from_shdr): When setting up section
LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4725&r2=1.4726
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf.c.diff?cvsroot=src&r1=1.488&r2=1.489



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=10494

--- You are receiving this mail because: ---
You are on the CC list for the bug, or are watching someone who is.


___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils