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: PATCH: PR ld/9938: TLS transition from R_386_TLS_GD to R_386_TLS_IE_32 error


"H.J. Lu" <hongjiu.lu@intel.com> writes:

> -	      && (strcmp (h->root.root.string, "___tls_get_addr") == 0));
> +	      && (strncmp (h->root.root.string, "___tls_get_addr",
> +			   15) == 0));

I think you should write
    strncmp (h->root.root.string, "___tls_get_addr", 15) == 0
    && (h->root.root.string[15] == '\0'
        || h->root.root.string[15] == '@')

Ian


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