This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] Treat STV_HIDDEN and STV_INTERNAL symbols as STB_LOCAL
- From: "Maciej W. Rozycki" <macro at imgtec dot com>
- To: <libc-alpha at sourceware dot org>
- Cc: <binutils at sourceware dot org>
- Date: Sat, 7 May 2016 02:38:13 +0100
- Subject: Re: [PATCH v2] Treat STV_HIDDEN and STV_INTERNAL symbols as STB_LOCAL
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 00 dot 1605070212010 dot 6794 at tp dot orcam dot me dot uk>
On Sat, 7 May 2016, Maciej W. Rozycki wrote:
> Index: glibc/elf/dl-reloc.c
> ===================================================================
> --- glibc.orig/elf/dl-reloc.c 2016-05-05 19:36:17.418334585 +0100
> +++ glibc/elf/dl-reloc.c 2016-05-06 04:41:12.649078174 +0100
> @@ -233,7 +233,8 @@ _dl_relocate_object (struct link_map *l,
>
> /* This macro is used as a callback from the ELF_DYNAMIC_RELOCATE code. */
> #define RESOLVE_MAP(ref, version, r_type) \
> - (ELFW(ST_BIND) ((*ref)->st_info) != STB_LOCAL \
> + ((ELFW (ST_BIND) ((*ref)->st_info) != STB_LOCAL \
I missed the unwanted `ELFW (ST_BIND)' part in this change and will keep
the original formatting intact in the final commit. I don't think there's
any sense in reposting the whole submission just for this bit.
Maciej