1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-23 04:17:34 +00:00
serenity/Userland/Libraries/LibELF
Daniel Bertalan 64b1740913 LibELF: Fix syscall regions for .text segments with a non-zero offset
Previously, we assumed that the `.text` segment was loaded at vaddr 0 in
all dynamic libraries, so we used the dynamic object's base address with
`msyscall`. This did not work with the LLVM toolchain, as it likes to
shuffle these segments around.

This now also handles the case when there are multiple text segments for
some reason correctly.
2021-07-07 22:26:53 +02:00
..
Arch LibELF: Implement PLT relocations for x86_64 2021-06-29 20:03:36 +02:00
AuxiliaryVector.h Kernel: Properly set up the userland context for new processes on x86_64 2021-06-28 22:29:28 +02:00
CMakeLists.txt LibELF+LibTest: Fix serenity_install_sources() paths 2021-03-15 09:06:10 +01:00
CoreDump.h AK: Implement String::find_any_of() and StringView::find_any_of() 2021-07-02 21:54:21 +02:00
DynamicLinker.cpp LibELF: Fix syscall regions for .text segments with a non-zero offset 2021-07-07 22:26:53 +02:00
DynamicLinker.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DynamicLoader.cpp LibELF: Fix loading libs with a .text segment that's not page-aligned 2021-07-07 11:53:17 +02:00
DynamicLoader.h LibELF: Swap the arguments for negative_offset_from_tls_block_end 2021-07-04 01:07:28 +02:00
DynamicObject.cpp LibELF: Implement support for RELA relocations 2021-07-01 10:50:00 +02:00
DynamicObject.h LibELF: Save the negative TLS offset in m_tls_offset 2021-07-04 01:07:28 +02:00
Hashes.h AK+Userland: Use akaster@serenityos.org for my copyright headers 2021-05-30 14:35:34 +01:00
Image.cpp Kernel+LibELF: Don't demangle symbols in the kernel 2021-07-06 19:08:22 +02:00
Image.h Kernel+LibELF: Don't demangle symbols in the kernel 2021-07-06 19:08:22 +02:00
Validation.cpp LibELF: Check for missing PT_LOAD alignment header value 2021-07-01 10:50:49 +02:00
Validation.h Kernel+LibELF: Add support for validating and loading ELF64 executables 2021-06-28 22:29:28 +02:00