Browse Source
2009-09-23 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.h (TC_FORCE_RELOCATION_LOCAL): Don't check BFD_RELOC_386_GOT32. gas/testsuite/ 2009-09-23 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run localpic. * gas/i386/localpic.d: New. * gas/i386/localpic.s: Likewise.gdb_7_1-branch
6 changed files with 26 additions and 4 deletions
@ -0,0 +1,6 @@ |
|||
#readelf: -r |
|||
#name: i386 local PIC |
|||
|
|||
Relocation section '.rel.text' at offset 0x[0-9a-f]+ contains 1 entries: |
|||
Offset Info Type Sym.Value Sym. Name |
|||
[0-9a-f]+ +[0-9a-f]+ R_386_GOT32 +[0-9a-f]+ +foo |
|||
@ -0,0 +1,5 @@ |
|||
.data |
|||
foo: |
|||
.long 0 |
|||
.text |
|||
movl foo@GOT(%ecx), %eax |
|||
Loading…
Reference in new issue