diff options
author | Alan Modra <amodra@gmail.com> | 2020-08-15 14:04:43 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-08-15 15:14:42 +0930 |
commit | 10885e2436ad1b50c26effb1cead20c06c9320c3 (patch) | |
tree | b30097288c8af1c7947103234c8a32760ef3e114 /bfd/elf32-nds32.c | |
parent | 4d1823674eedf267c7cafac2b923256db0b10ac8 (diff) | |
download | gdb-10885e2436ad1b50c26effb1cead20c06c9320c3.zip gdb-10885e2436ad1b50c26effb1cead20c06c9320c3.tar.gz gdb-10885e2436ad1b50c26effb1cead20c06c9320c3.tar.bz2 |
Set SEC_SMALL_DATA on small common
Unlike the previous patch setting SEC_SMALL_DATA during
elf_backend_symbol_processing, this patch is mostly cosmetic.
* elf32-frv.c (elf32_frv_add_symbol_hook): Set SEC_SMALL_DATA on
small common section.
* elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
* elf32-microblaze.c (microblaze_elf_add_symbol_hook): Likewise.
* elf32-nds32.c (nds32_elf_add_symbol_hook): Likewise.
* elf32-nios2.c (nios2_elf_add_symbol_hook): Likewise.
* elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
* elf32-score.c (s3_bfd_score_elf_add_symbol_hook): Likewise.
* elf32-score7.c (s7_bfd_score_elf_add_symbol_hook): Likewise.
* elf32-tic6x.c (elf32_tic6x_add_symbol_hook): Likewise.
* elf32-v850.c (v850_elf_check_relocs): Likewise.
(v850_elf_add_symbol_hook): Likewise.
* elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
* elf64-ia64-vms.c (elf64_ia64_add_symbol_hook): Likewise.
* elfnn-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
* elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Likewise.
Diffstat (limited to 'bfd/elf32-nds32.c')
-rw-r--r-- | bfd/elf32-nds32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-nds32.c b/bfd/elf32-nds32.c index 1f9f9ba..233af38 100644 --- a/bfd/elf32-nds32.c +++ b/bfd/elf32-nds32.c @@ -3368,7 +3368,7 @@ nds32_elf_add_symbol_hook (bfd *abfd, || ELF_ST_TYPE (sym->st_info) == STT_TLS) break; - /* st_value is the alignemnt constraint. + /* st_value is the alignment constraint. That might be its actual size if it is an array or structure. */ switch (sym->st_value) { @@ -3388,7 +3388,7 @@ nds32_elf_add_symbol_hook (bfd *abfd, return TRUE; } - (*secp)->flags |= SEC_IS_COMMON; + (*secp)->flags |= SEC_IS_COMMON | SEC_SMALL_DATA; *valp = sym->st_size; break; } |