[all-commits] [llvm/llvm-project] 1de18a: [llvm-objcopy] Make ihex writer similar to binary ...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Jun 16 10:08:40 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1de18ad8d79eb328ad410fa60209e5dfa19752c8
https://github.com/llvm/llvm-project/commit/1de18ad8d79eb328ad410fa60209e5dfa19752c8
Author: Fangrui Song <i at maskray.me>
Date: 2021-06-16 (Wed, 16 Jun 2021)
Changed paths:
M llvm/test/tools/llvm-objcopy/ELF/Inputs/ihex-elf-segments.yaml
M llvm/test/tools/llvm-objcopy/ELF/ihex-writer.test
M llvm/tools/llvm-objcopy/ELF/Object.cpp
Log Message:
-----------
[llvm-objcopy] Make ihex writer similar to binary writer
There is no need to differentiate whether `UseSegments` is true or
false. Unifying the cases makes the behavior closer to BinaryWriter.
This improves compatibility with objcopy because SHF_ALLOC sections not in
a PT_LOAD will not be skipped. Such cases are usually erroneous input, though.
Reviewed By: jhenderson
Differential Revision: https://reviews.llvm.org/D104186
More information about the All-commits
mailing list