[PATCH] D62141: [ELF] -z combreloc: sort dynamic relocations by (!is_relative,symbol_index,r_offset)

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 20 08:17:15 PDT 2019


MaskRay added a comment.

FreeBSD ld.so/musl don't use `DT_RELACOUNT`. In glibc, `glibc/sysdeps/x86_64/dl-machine.h` (but not on other arch) has an assertion that the first DT_REL[A]COUNT relocations must all be relative.

@evgeny777 I'm curious how your dynamic loader uses `DT_REL{,A}COUNT` since you created D23661 <https://reviews.llvm.org/D23661>:)


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62141/new/

https://reviews.llvm.org/D62141





More information about the llvm-commits mailing list