Browse Source
bfd/ 2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11933 * elflink.c (elf_link_add_object_symbols): Don't check relocation if input ELF object ID doesn't match output. ld/testsuite/ 2010-08-22 H.J. Lu <hongjiu.lu@intel.com> PR ld/11933 * ld-x86-64/mixed1a.s: New. * ld-x86-64/mixed1b.s: Likewise. * ld-x86-64/mixed2a.s: Likewise. * ld-x86-64/mixed2b.s: Likewise. * ld-x86-64/x86-64.exp: Text mixed x86_64 and i386 inputs.binutils-2_21-branch
8 changed files with 78 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
.text |
|||
.globl _start |
|||
.type _start, @function |
|||
_start: |
|||
cmpq $0, foo(%rip) |
|||
.size _start, .-_start |
|||
@ -0,0 +1,10 @@ |
|||
.globl foo |
|||
.section .rodata.str1.1,"aMS",@progbits,1 |
|||
.LC0: |
|||
.string "Hello" |
|||
.data |
|||
.align 4 |
|||
.type foo, @object |
|||
.size foo, 4 |
|||
foo: |
|||
.long .LC0 |
|||
@ -0,0 +1,7 @@ |
|||
.text |
|||
.p2align 4,,15 |
|||
.globl _start |
|||
.type _start, @function |
|||
_start: |
|||
movl foo(%rip), %eax |
|||
.size _start, .-_start |
|||
@ -0,0 +1,7 @@ |
|||
.globl foo |
|||
.data |
|||
.align 4 |
|||
.type foo, @object |
|||
.size foo, 4 |
|||
foo: |
|||
.long 1 |
|||
Loading…
Reference in new issue