Why is _dl_relocate_static_pie linked into crt1.o?

Florian Weimer fweimer@redhat.com
Thu Jul 5 15:02:00 GMT 2018


On 07/05/2018 03:37 PM, Szabolcs Nagy wrote:
> do they support --enable-static-pie? if not then i'd just revert
> 
> 9ba7e81028b3313d9aeb97a98d2e37626694d442
> and
> c34a19ed4b0bcf91ff9671b733f8cfffa111e7f6
> 8172aad937f52fe4ae891a206492150815791f2a

What Fedora calls armv7hl or armhfp does not work with binutils 2.30. 
Statically linked binaries crash in _dl_relocate_static_pie, around here:

   /* Read our own dynamic section and fill in the info array.  */
   main_map->l_ld = ((void *) main_map->l_addr + elf_machine_dynamic ());
   elf_get_dynamic_info (main_map, NULL);

This is with an unpatched master as of today.  I have not checked 
whether this happens because elf_machine_dynamic is broken or if 
_dl_relocate_static_pie itself depends on relocations.

Thanks,
Florian



More information about the Libc-alpha mailing list