diff options
author | Alan Modra <amodra@gmail.com> | 2000-10-11 07:05:02 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-10-11 07:05:02 +0000 |
commit | d01e2a23a35139d64687b473b93d7f39b54b9d56 (patch) | |
tree | 081978b43b2850be30c3dd4f01ca4b814f673ff5 /bfd | |
parent | e47d05ade67e272fefb25ef2a1842e1c25f76052 (diff) | |
download | gdb-d01e2a23a35139d64687b473b93d7f39b54b9d56.zip gdb-d01e2a23a35139d64687b473b93d7f39b54b9d56.tar.gz gdb-d01e2a23a35139d64687b473b93d7f39b54b9d56.tar.bz2 |
Revert 2000-10-07 link-once section symbol changes.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 2 | ||||
-rw-r--r-- | bfd/elf.c | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0376e8c..d9b016b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,7 @@ 2000-10-11 Alan Modra <alan@linuxcare.com.au> + * elf.c (swap_out_syms): Revert 2000-10-07 changes. + * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg. 2000-10-10 Alan Modra <alan@linuxcare.com.au> @@ -4352,10 +4352,11 @@ swap_out_syms (abfd, sttp, relocatable_p) flagword flags = syms[idx]->flags; int type; - /* Section symbols usually have no name. The exception is - link-once section symbols, which we make global. */ - if ((flags & (BSF_SECTION_SYM | BSF_GLOBAL)) == BSF_SECTION_SYM) - sym.st_name = 0; + if ((flags & BSF_SECTION_SYM) != 0) + { + /* Section symbols have no name. */ + sym.st_name = 0; + } else { sym.st_name = (unsigned long) _bfd_stringtab_add (stt, @@ -4462,8 +4463,7 @@ swap_out_syms (abfd, sttp, relocatable_p) type = (*bed->elf_backend_get_symbol_type) (&type_ptr->internal_elf_sym, type); if (flags & BSF_SECTION_SYM) - sym.st_info = ELF_ST_INFO ((flags & BSF_GLOBAL - ? STB_GLOBAL : STB_LOCAL), STT_SECTION); + sym.st_info = ELF_ST_INFO (STB_LOCAL, STT_SECTION); else if (bfd_is_com_section (syms[idx]->section)) sym.st_info = ELF_ST_INFO (STB_GLOBAL, type); else if (bfd_is_und_section (syms[idx]->section)) |