[PATCH v2] Treat STV_HIDDEN and STV_INTERNAL symbols as STB_LOCAL
Maciej W. Rozycki
macro@imgtec.com
Sat May 7 01:38:00 GMT 2016
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
More information about the Binutils
mailing list