This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC PATCH 1/4] [BFD][LD] Fix linker error when using NT weak externals


On Thu, Oct 22, 2015 at 07:10:17PM +0300, Octavian Purdila wrote:
> --- a/bfd/linker.c
> +++ b/bfd/linker.c
> @@ -1354,8 +1354,8 @@ enum link_action
>  static const enum link_action link_action[8][8] =
>  {
>    /* current\prev    new    undef  undefw def    defw   com    indr   warn  */
> -  /* UNDEF_ROW 	*/  {UND,   NOACT, UND,   REF,   REF,   NOACT, REFC,  WARNC },
> -  /* UNDEFW_ROW	*/  {WEAK,  NOACT, NOACT, REF,   REF,   NOACT, REFC,  WARNC },
> +  /* UNDEF_ROW 	*/  {UND,   NOACT, NOACT,   REF,   REF,   NOACT, REFC,  WARNC },
> +  /* UNDEFW_ROW	*/  {WEAK,  WEAK, NOACT, REF,   REF,   NOACT, REFC,  WARNC },

This change doesn't make sense at all.  Strong undefined wins over
weak undefined, not the other way around as you would seem to like.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]