[llvm] [llvm-objcopy] Add change-section-lma *+/-offset (PR #95431)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 00:47:08 PDT 2024
================
@@ -0,0 +1,52 @@
+# RUN: yaml2obj %s -o %t
----------------
jh7370 wrote:
The non-empty PT_NOTE is currently nested inside the first PT_LOAD segment, if I'm not mistaken? I think it needs to have a companion section that can be assigned to it, to force the offset to be not within the other PT_LOADs.
> The zero-size NOTE is already independent as it automatically gets virtual address of 0x0.
Not quite what I meant (I wanted a segment with 0 virtual address, and a different segment with zero file size). That being said, I actually don't think we need a 0 virtual address case, having given it a bit more thought, since there's nothing special about this case.
https://github.com/llvm/llvm-project/pull/95431
More information about the llvm-commits
mailing list