summaryrefslogtreecommitdiff
path: root/llvm/lib/BinaryFormat/ELF.cpp
AgeCommit message (Collapse)Author
2025-03-26[llvm-ifs] Handle more e_machine values for --target (#128559)Roland McGrath
This adds ELF::convertTripleArchTypeToEMachine and uses it in llvm-ifs. It handles many more Triple::ArchType values than the old code, though not all since I couldn't quickly discern what all the mappings are.
2024-04-29[BinaryFormat] Adjust OSABI functions and add unittestsFangrui Song
Adjust #89280: * ELFOSABI_LINUX is a historical alias that should not be used in new code. readelf -h displays "UNIX - GNU" instead of "Linux". * "OS" is inappropriate. Some values are architecture-specific, e.g. ELFOSABI_ARM. * Drop lowercase, which seems a job of the caller. Add some unittests. Pull Request: https://github.com/llvm/llvm-project/pull/90270
2024-04-18adds conversion functions for EI_OSABI in elf (#89280)Fred Grim
These are needed to populate elf headers in core files. This is part of implementing process save-core in lldb
2023-11-11[llvm] Stop including llvm/ADT/DenseMapInfo.h (NFC)Kazu Hirata
Identified with clangd.
2022-11-17[BinaryFormat] Add LoongArchWANG Xuerui
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D138018
2022-01-26Cleanup headers for BinaryFormatserge-sans-paille
A few header removal, some forward declarations. As usual, this can break your build due to false dependencies, the most notable change are: - "llvm/BinaryFormat/AMDGPUMetadataVerifier.h" no longer includes "llvm/BinaryFormat/MsgPackDocument.h" The impact on generated preprocessed lines for LLVMBinaryFormat is pretty nice: $ clang++ -E -Iinclude -I../llvm/include ../llvm/lib/BinaryFormat/*.cpp -std=c++14 -fno-rtti -fno-exceptions | wc -l before this patch: 705281 after this patch: 751456 Discourse thread on the topic: https://llvm.discourse.group/t/include-what-you-use-include-cleanup
2021-07-19[elfabi] Prepare elfabi/ifs merging.Haowei Wu
This change implements unified text stub format and command line interface proposed in the elfabi/ifs merge plan. Differential Revision: https://reviews.llvm.org/D99399