Browse Source
Only check invalid relocation against protected symbol defined in shared object. bfd/ PR ld/29377 * elf32-i386.c (elf_i386_scan_relocs): Only check invalid relocation against protected symbol defined in shared object. * elf64-x86-64.c (elf_x86_64_scan_relocs): Likewise. ld/ PR ld/29377 * testsuite/ld-elf/linux-x86.exp: Run PR ld/29377 tests. * testsuite/ld-elf/pr29377a.c: New file. * testsuite/ld-elf/pr29377b.c: Likewise.users/aburgess/try-mips-disasm-styling
5 changed files with 35 additions and 0 deletions
@ -0,0 +1,5 @@ |
|||
__attribute__ ((visibility ("protected"))) |
|||
void |
|||
foo (void) |
|||
{ |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
extern void foo (void); |
|||
|
|||
void (*foo_p) (void); |
|||
|
|||
int |
|||
main () |
|||
{ |
|||
foo_p = foo; |
|||
return 0; |
|||
} |
|||
Loading…
Reference in new issue