http://sourceware.org/bugzilla/show_bug.cgi?id=12882
Summary: Wrong @dtpoff relocation with -pie Product: binutils Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: ubiz...@gmail.com Created attachment 5791 --> http://sourceware.org/bugzilla/attachment.cgi?id=5791 asm code that triggers -pie relocation error Attached testcase from gcc testsuite triggers a ld bug with @dtpoff relocation and -pie on 32bit i686-pc-linux target. [uros@localhost test]$ gcc -m32 run-ld.s [uros@localhost test]$ ./a.out [uros@localhost test]$ gcc -m32 -pie run-ld.s [uros@localhost test]$ ./a.out Aborted (core dumped) ld --version GNU ld version 2.21.51.0.6-2.fc15 20110118 Running through the debugger, wrong values are loaded at "<<" lines. 000005d0 <get_ld>: 5d0: 53 push %ebx 5d1: bb d6 05 00 00 mov $0x5d6,%ebx 5d6: 81 c3 e6 12 00 00 add $0x12e6,%ebx 5dc: 65 a1 00 00 00 00 mov %gs:0x0,%eax 5e2: 90 nop 5e3: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi 5e7: 5b pop %ebx 5e8: 8b 90 04 00 00 00 mov 0x4(%eax),%edx << here 5ee: 03 90 00 00 00 00 add 0x0(%eax),%edx << here 5f4: 89 d0 mov %edx,%eax 5f6: c3 ret -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- 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