[llvm] [llvm-objcopy] Support SREC output format (PR #75874)
Simon Tatham via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 8 08:53:51 PST 2024
================
@@ -324,6 +324,14 @@ Expected<IHexRecord> IHexRecord::parse(StringRef Line) {
return Rec;
}
+static uint64_t sectionLMA(const SectionBase *Sec) {
----------------
statham-arm wrote:
I'm curious about why this helper function is needed for SREC, if it didn't already exist for IHEX. The two seem similar to me: surely for both formats you want to calculate the memory addresses of segments the same way.
Does this patch agree with the way IHEX does it? If not, which do you think is right?
https://github.com/llvm/llvm-project/pull/75874
More information about the llvm-commits
mailing list