[PATCH] BFD/XCOFF: Fix storage class setting for weak defined symbols
Alan Modra
amodra@gmail.com
Wed Jul 18 07:39:00 GMT 2018
On Mon, Jul 16, 2018 at 06:40:35AM +0100, Maciej W. Rozycki wrote:
> --- binutils.orig/bfd/xcofflink.c 2018-07-13 21:45:54.000000000 +0100
> +++ binutils/bfd/xcofflink.c 2018-07-13 21:49:54.561733638 +0100
> @@ -5592,7 +5592,7 @@ xcoff_write_global_symbol (struct bfd_ha
> BFD_ASSERT (bfd_is_abs_section (h->root.u.def.section));
> isym.n_value = h->root.u.def.value;
> isym.n_scnum = N_UNDEF;
> - if (h->root.type == bfd_link_hash_undefweak
> + if (h->root.type == bfd_link_hash_defweak
> && C_WEAKEXT == C_AIX_WEAKEXT)
> isym.n_sclass = C_WEAKEXT;
> else
There's another instance of the same error 66 lines after this one.
I think both count as obvious fixes.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list