[gold commit] Aligning segments in gold

Alan Modra amodra@gmail.com
Wed Jan 14 23:34:00 GMT 2015


On Wed, Jan 14, 2015 at 11:35:58AM -0800, Cary Coutant wrote:
> > This appears to cause the following failure on powerpc64.
> >
> > `echo g++ -Bgcctestdir/ -m64 -W -Wall    -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fmerge-constants -g -O -fno-inline -fno-use-linker-plugin   -o relro_test.so | sed -e 's/-Wp,-D_FORTIFY_SOURCE=[0-9][0-9]*//'` -shared -Wl,-z,relro relro_test_pic.o
> > gcctestdir/collect-ld: internal error in set_offset, at /src/binutils-gdb/gold/output.cc:4686
> 
> Unfortunately, with the ppc64 toolchain I have, I can't reproduce this
> error. Can you send me your copy of relro_test_pic.o? (Since I don't
> have a native machine to test on, I had to cross-compile and link with
> an x86-hosted gold. So that may have changed things.)

Attached.  Reproduces with native and x86_64 hosted gold.
./ld-new --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu -shared -m elf64ppc -o relro_test.so -z relro relro_test_pic.o

-- 
Alan Modra
Australia Development Lab, IBM
-------------- next part --------------
A non-text attachment was scrubbed...
Name: relro_test_pic.o
Type: application/x-object
Size: 27584 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150114/8aa23ebb/attachment.bin>


More information about the Binutils mailing list