diff options
author | Alan Modra <amodra@gmail.com> | 2015-04-09 21:36:24 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-04-10 19:16:47 +0930 |
commit | 8d2ea2a80abad66250f2f4a1d38e3b8c796147f8 (patch) | |
tree | 556afca02e04ecd7cde4137f5915040476984198 /bfd/elflink.c | |
parent | 8d707a12ef51ba5f4c3c6a52532e903da7a56b8b (diff) | |
download | gdb-8d2ea2a80abad66250f2f4a1d38e3b8c796147f8.zip gdb-8d2ea2a80abad66250f2f4a1d38e3b8c796147f8.tar.gz gdb-8d2ea2a80abad66250f2f4a1d38e3b8c796147f8.tar.bz2 |
Revert "Add extern_protected_data and set it for x86"
This reverts commit ca3fe95e469b9daec153caa2c90665f5daaec2b5.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index 022a535..183b313 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -2673,9 +2673,7 @@ _bfd_elf_adjust_dynamic_copy (struct bfd_link_info *info, /* Increment the size of DYNBSS to make room for the symbol. */ dynbss->size += h->size; - /* No error if extern_protected_data is true. */ - if (h->protected_def - && !get_elf_backend_data (dynbss->owner)->extern_protected_data) + if (h->protected_def) { info->callbacks->einfo (_("%P: copy reloc against protected `%T' is invalid\n"), @@ -2839,9 +2837,8 @@ _bfd_elf_symbol_refs_local_p (struct elf_link_hash_entry *h, bed = get_elf_backend_data (hash_table->dynobj); - /* If extern_protected_data is false, STV_PROTECTED non-function - symbols are local. */ - if (!bed->extern_protected_data && !bed->is_function_type (h->type)) + /* STV_PROTECTED non-function symbols are local. */ + if (!bed->is_function_type (h->type)) return TRUE; /* Function pointer equality tests may require that STV_PROTECTED |