[llvm] [llvm-objcopy] Add change-section-lma *+/-offset (PR #95431)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 02:39:35 PDT 2024
================
@@ -0,0 +1,52 @@
+# RUN: yaml2obj %s -o %t
----------------
jh7370 wrote:
I think you additionally need:
1) A segment with 0 file size.
2) A segment with an explicit p_paddr that is different to the p_vaddr.
3) A non PT_LOAD segment (with non-zero p_filesz), to show that it's not just PT_LOAD segments that are impacted (should they be impacted though? what does GNU objcopy do?).
4) A nested segment (with non-zero p_filesz) to show that segments within other segments are appropriately updated. The segment should probably have a non-zero offset within the PT_LOAD it's nested inside.
5) A segment with 0 p_vaddr/p_paddr.
6) Test cases that cover all the different new error messages you've added for parsing the option.
https://github.com/llvm/llvm-project/pull/95431
More information about the llvm-commits
mailing list