aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2008-02-17 23:45:23 +0000
committerMark Kettenis <kettenis@gnu.org>2008-02-17 23:45:23 +0000
commit0a40daed72632d116d8602f583f16ec2fd3f3abb (patch)
tree1bc3e7f83141f01e71a1fece5453ffe899044539 /bfd/elf.c
parentbd7b7e7ef89ff9d000ed0daac788e5c7ce4ee79f (diff)
downloadgdb-0a40daed72632d116d8602f583f16ec2fd3f3abb.zip
gdb-0a40daed72632d116d8602f583f16ec2fd3f3abb.tar.gz
gdb-0a40daed72632d116d8602f583f16ec2fd3f3abb.tar.bz2
* elf.c (swap_out_syms): Avoid preprocessing directive within
macro arg.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index cce7163..b0030c7 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6378,11 +6378,15 @@ Unable to find equivalent output section for symbol '%s' from section '%s'"),
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,
+ {
#ifdef USE_STT_COMMON
- type == STT_OBJECT ? STT_COMMON :
+ if (type == STT_OBJECT)
+ sym.st_info = ELF_ST_INFO (STB_GLOBAL, STT_COMMON);
+ else
+#else
+ sym.st_info = ELF_ST_INFO (STB_GLOBAL, type);
#endif
- type);
+ }
else if (bfd_is_und_section (syms[idx]->section))
sym.st_info = ELF_ST_INFO (((flags & BSF_WEAK)
? STB_WEAK