https://sourceware.org/bugzilla/show_bug.cgi?id=19572
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to Nick Clifton from comment #6) > Created attachment 9043 [details] > Revised patch testsuite/ld-elf/textaddr8.d should be ld/testsuite/ld-elf/textaddr8.d. > Hi H.J. > > Thanks for the examples. I was unaware of the vagaries of the x32 > architecture. This revised patch should work with second test in comment #5, > but it will not work with the test from comment #4. The reason for that is > that the text segment address set in comment #4 is a 32-bit address, which > makes > it valid as far as this patch is concerned. If instead the test used this > linker command: > > ./ld -Ttext-segment 0x800000000 -m elf32_x86_64 -o x x.o > > then the patched code would issue an error message. > > Is this version of the patch acceptable to you ? I got this strange message with i386 ld: cc -m32 -c -O2 -ffunction-sections -fPIC -o x.o x.S ./ld.32 -Ttext-segment 0xffffffff80000000 -m elf_i386 -o x x.o ./ld.32: warning: address of `text-segment' isn't multiple of maximum page size ./ld.32: Segment text-segment address ffffffff is bigger than maximum address 00000000 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils