Browse Source
bfd/ * elfxx-x86.c (readonly_dynrelocs): New function. (maybe_set_textrel): New function. Always prints via minfo and correct "readonly" to "read-only" in warning message., replacing.. (_bfd_x86_elf_readonly_dynrelocs): ..this. (_bfd_x86_elf_size_dynamic_sections): Correct "readonly" to "read-only" in warning message. Formatting. (_bfd_x86_elf_adjust_dynamic_symbol): Use readonly_dynrelocs. * linker.c (bfd_link_hash_traverse): Comment typo fix. ld/ * testsuite/ld-i386/pr17935-1.d: Adjust expected error. * testsuite/ld-i386/pr17935-2.d: Likewise. * testsuite/ld-x86-64/pr17935-1.d: Likewise. * testsuite/ld-x86-64/pr17935-2.d: Likewise.gdb-8.1-branch
8 changed files with 72 additions and 47 deletions
@ -1,3 +1,3 @@ |
|||
# as: --32 |
|||
# ld: -m elf_i386 -shared -z text |
|||
# error: warning: relocation against `foo' in readonly section `.text' |
|||
# error: warning: relocation against `foo' in read-only section `.text' |
|||
|
|||
@ -1,3 +1,3 @@ |
|||
# as: --32 |
|||
# ld: -m elf_i386 -shared -z text |
|||
# error: warning: relocation in readonly section `.text' |
|||
# error: warning: relocation in read-only section `.text' |
|||
|
|||
@ -1,3 +1,3 @@ |
|||
# as: --64 |
|||
# ld: -m elf_x86_64 -shared -z text |
|||
# error: warning: relocation against `foo' in readonly section `.text' |
|||
# error: warning: relocation against `foo' in read-only section `.text' |
|||
|
|||
@ -1,3 +1,3 @@ |
|||
# as: --64 |
|||
# ld: -m elf_x86_64 -shared -z text |
|||
# error: warning: relocation in readonly section `.text' |
|||
# error: warning: relocation in read-only section `.text' |
|||
|
|||
Loading…
Reference in new issue