[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/12882] New: Wrong @dtpoff relocation with -pie
From: |
ubizjak at gmail dot com |
Subject: |
[Bug ld/12882] New: Wrong @dtpoff relocation with -pie |
Date: |
Mon, 13 Jun 2011 17:09:25 +0000 |
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: address@hidden
ReportedBy: address@hidden
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.
address@hidden test]$ gcc -m32 run-ld.s
address@hidden test]$ ./a.out
address@hidden test]$ gcc -m32 -pie run-ld.s
address@hidden 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 ld/12882] New: Wrong @dtpoff relocation with -pie,
ubizjak at gmail dot com <=
- [Bug ld/12882] Wrong @dtpoff relocation with -pie, ubizjak at gmail dot com, 2011/06/13
- [Bug ld/12882] Wrong @dtpoff relocation with -pie, hjl.tools at gmail dot com, 2011/06/13
- [Bug ld/12882] Wrong @dtpoff relocation with -pie, ubizjak at gmail dot com, 2011/06/13
- [Bug ld/12882] Wrong @dtpoff relocation with -pie, hjl.tools at gmail dot com, 2011/06/13
- [Bug ld/12882] Wrong @dtpoff relocation with -pie, ubizjak at gmail dot com, 2011/06/13
- [Bug ld/12882] Wrong @dtpoff relocation with -pie, hjl.tools at gmail dot com, 2011/06/13