diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-08-06 22:27:52 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-08-06 22:27:52 +0000 |
commit | eb8476a6e2fc115c0a953392e61ab27c7568a2a8 (patch) | |
tree | 30b9014e6f4c62bd312650473ada0a1cc4b315a8 /bfd | |
parent | de88229846525b2afb4a8b85b7f60f3246d3e90d (diff) | |
download | gdb-eb8476a6e2fc115c0a953392e61ab27c7568a2a8.zip gdb-eb8476a6e2fc115c0a953392e61ab27c7568a2a8.tar.gz gdb-eb8476a6e2fc115c0a953392e61ab27c7568a2a8.tar.bz2 |
bfd/
* elflink.c (bfd_elf_record_link_assignment): Remove --defsym
symbols special case.
ld/
* ldexp.h (etree_union): Add defsym member to the assign member
structure.
(exp_assign): Add hidden argument to prototype.
* ldexp.c (exp_fold_tree_1): Use the defsym member to handle
--defsym symbols.
(exp_assop): Add defsym argument, initialize the defsym member
of the assign structure.
(exp_assign): Handle hidden symbols.
(exp_defsym): Update to use the defsym argument to exp_assop.
(exp_provide): Update to handle the defsym argument to exp_assop.
* ldlex.l (HIDDEN): New token.
* ldgram.y (HIDDEN): Likewise.
(assignment, section): Update calls to exp_assign.
* ldctor.c (ldctor_build_sets): Likewise.
* mri.c (mri_format): Likewise.
* ldlang.c (lang_insert_orphan, lang_leave_overlay): Likewise.
(open_input_bfds): Remove --defsym symbols special case.
* emultempl/beos.em (gld_${EMULATION_NAME}_set_symbols): Update
call to exp_assign.
* emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/pep.em (gld_${EMULATION_NAME}_set_symbols): Likewise.
* emultempl/spuelf.em (spu_place_special_section): Likewise.
* emultempl/xtensaelf.em (ld_xtensa_insert_page_offsets):
Likewise.
* ld.texinfo (Assigning Values to Symbols): Add HIDDEN.
(HIDDEN): New subsection.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 30fff7a..267a6ee 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2012-08-06 Maciej W. Rozycki <macro@codesourcery.com> + + * elflink.c (bfd_elf_record_link_assignment): Remove --defsym + symbols special case. + 2012-08-05 Maciej W. Rozycki <macro@linux-mips.org> * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate diff --git a/bfd/elflink.c b/bfd/elflink.c index 574b6e2..7335114 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -569,7 +569,7 @@ bfd_elf_record_link_assignment (bfd *output_bfd, h->def_regular = 1; - if (provide && hidden) + if (hidden) { bed = get_elf_backend_data (output_bfd); h->other = (h->other & ~ELF_ST_VISIBILITY (-1)) | STV_HIDDEN; |