* elf.c (swap_out_syms): Avoid preprocessing directive within
authorMark Kettenis <kettenis@gnu.org>
Sun, 17 Feb 2008 23:45:23 +0000 (23:45 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 17 Feb 2008 23:45:23 +0000 (23:45 +0000)
macro arg.

bfd/ChangeLog
bfd/elf.c

index 086b4b1096f14e7525fc692e06501d2330fa204f..ca3b5e5aaa5d953193d7db2c5121230bdeac3c69 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-17  Mark Kettenis  <kettenis@gnu.org>
+
+       * elf.c (swap_out_syms): Avoid preprocessing directive within
+       macro arg.
+
 2008-02-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * elf.c (assign_file_positions_for_load_sections): Set the type of
index cce716360565c8f505d70c4e2e465088f9d3985b..b0030c7473c31d4dcb3729e824372ea252613a8a 100644 (file)
--- 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