2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/9933
* objcopy.c (filter_symbols): Properly handle common symbols
in relocatable file.
binutils/testsuite/
2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/9933
* binutils-all/copy-4.d: New.
* binutils-all/objcopy.exp: Run copy-4.
+2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/9933
+ * objcopy.c (filter_symbols): Properly handle common symbols
+ in relocatable file.
+
2009-03-06 Nick Clifton <nickc@redhat.com>
* po/es.po: Updated Spanish translation.
used_in_reloc = TRUE;
}
else if (relocatable /* Relocatable file. */
- && (flags & (BSF_GLOBAL | BSF_WEAK)) != 0)
+ && ((flags & (BSF_GLOBAL | BSF_WEAK)) != 0
+ || bfd_is_com_section (bfd_get_section (sym))))
keep = TRUE;
else if (bfd_decode_symclass (sym) == 'I')
/* Global symbols in $idata sections need to be retained
+2009-03-09 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/9933
+ * binutils-all/copy-4.d: New.
+
+ * binutils-all/objcopy.exp: Run copy-4.
+
2009-03-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* config/hppa.sed: Fix spelling.
--- /dev/null
+#PROG: strip
+#source: bintest.s
+#strip: --strip-unneeded
+#nm: -n
+#name: strip --strip-unneeded on common symbol
+
+#...
+0+04 C common_symbol
+#pass
run_dump_test "copy-2"
run_dump_test "copy-3"
+run_dump_test "copy-4"
if [is_elf_format] {
run_dump_test "strip-1"