diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-08-17 07:50:30 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-08-17 07:50:30 +0000 |
commit | 0035bd7bdae8fe325e8ad63ef07896f5594e229b (patch) | |
tree | c1dd98035145695bf01372975b07abc0deabf064 /bfd/elf32-mips.c | |
parent | c31fd3fe9f6ba788a09e64c6523bd5d2f79e31f6 (diff) | |
download | gdb-0035bd7bdae8fe325e8ad63ef07896f5594e229b.zip gdb-0035bd7bdae8fe325e8ad63ef07896f5594e229b.tar.gz gdb-0035bd7bdae8fe325e8ad63ef07896f5594e229b.tar.bz2 |
* elf32-mips.c (_bfd_mips_elf_add_symbol_hook): Set BSF_DYNAMIC
for special section symbols.
* elflink.h (elf_merge_symbol): If we have no old BFD, check
BSF_DYNAMIC on the section symbol to see whether the old BFD is
dynamic.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r-- | bfd/elf32-mips.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index b7191b1..f18f1fd 100644 --- a/bfd/elf32-mips.c +++ b/bfd/elf32-mips.c @@ -3877,7 +3877,7 @@ _bfd_mips_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) mips_elf_text_section.symbol = &mips_elf_text_symbol; mips_elf_text_section.symbol_ptr_ptr = &mips_elf_text_symbol_ptr; mips_elf_text_symbol.name = ".text"; - mips_elf_text_symbol.flags = BSF_SECTION_SYM; + mips_elf_text_symbol.flags = BSF_SECTION_SYM | BSF_DYNAMIC; mips_elf_text_symbol.section = &mips_elf_text_section; mips_elf_text_symbol_ptr = &mips_elf_text_symbol; mips_elf_text_section_ptr = &mips_elf_text_section; @@ -3901,7 +3901,7 @@ _bfd_mips_elf_add_symbol_hook (abfd, info, sym, namep, flagsp, secp, valp) mips_elf_data_section.symbol = &mips_elf_data_symbol; mips_elf_data_section.symbol_ptr_ptr = &mips_elf_data_symbol_ptr; mips_elf_data_symbol.name = ".data"; - mips_elf_data_symbol.flags = BSF_SECTION_SYM; + mips_elf_data_symbol.flags = BSF_SECTION_SYM | BSF_DYNAMIC; mips_elf_data_symbol.section = &mips_elf_data_section; mips_elf_data_symbol_ptr = &mips_elf_data_symbol; mips_elf_data_section_ptr = &mips_elf_data_section; |