summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2022-04-07 13:59:48 +0200
committerStefan Liebler <stli@linux.ibm.com>2022-04-07 20:38:23 +0200
commit5325233313c66aea13e86f5dd59618e9dd74b510 (patch)
tree2f1c3d4b19710ee92efeda8e8eadc606e3de2778 /string
parent4f2146c4f41c409d92441d6365dc3aceaf70c7fe (diff)
downloadglibc-5325233313c66aea13e86f5dd59618e9dd74b510.tar.gz
glibc-5325233313c66aea13e86f5dd59618e9dd74b510.tar.xz
glibc-5325233313c66aea13e86f5dd59618e9dd74b510.zip
S390: Fix elf/tst-audit25[ab]
If glibc is configured with --disable-default-pie and build on
s390 with -O3, the tests elf/tst-audit25a and elf/tst-audit25b are
failing as there are additional la_symbind lines for free and malloc.
It turns out that those belong to the executable. In fact those are
the PLT-stubs. Furthermore la_symbind is also called for calloc and
realloc symbols, but those belong to libc.

Those functions are not called at all, but dlsym'ed in
elf/dl-minimal.c:
__rtld_malloc_init_real (struct link_map *main_map)
{
...
  void *new_calloc = lookup_malloc_symbol (main_map, "calloc", &version);
  void *new_free = lookup_malloc_symbol (main_map, "free", &version);
  void *new_malloc = lookup_malloc_symbol (main_map, "malloc", &version);
  void *new_realloc = lookup_malloc_symbol (main_map, "realloc", &version);
...
}

Therefore, this commit just ignored symbols with LA_SYMB_DLSYM flag.
Reviewed-by: Adheemrval Zanella  <adhemerval.zanella@linaro.org>
Diffstat (limited to 'string')
0 files changed, 0 insertions, 0 deletions