LibC+LibELF: Implement support for the dl_iterate_phdr helper

This helper is used by libgcc_s to figure out where the .eh_frame sections
are located for all loaded shared objects.
This commit is contained in:
Gunnar Beutner 2021-04-16 21:53:43 +02:00 committed by Andreas Kling
commit 6cb28ecee8
Notes: sideshowbarker 2024-07-18 19:28:46 +09:00
20 changed files with 171 additions and 25 deletions

View file

@ -8,6 +8,11 @@ cd "${script_path}/.."
MISSING_FLAGS=n
while IFS= read -r FLAG; do
# Ignore ELF_DEBUG because it's not a debug flag.
if [ "$FLAG" = "ELF_DEBUG" ]; then
continue
fi
# We simply search whether the CMakeLists.txt *ever* sets the flag.
# There are (basically) no false positives, but there might be false negatives,
# for example we intentionally don't check for commented-out lines here.