You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead, GNU binutils objcopy and llvm-objcopy both have an option called --change-start, but I do not know whether this option works as I have not tried bbl under my workflow (my workflow only needs pk thus I have to invoke make pk instead of justmake)
The text was updated successfully, but these errors were encountered:
As an llvm-objcopy contributor: llvm-objcopy does not support --change-addresses/--change-section-address (llvm/llvm-project#44562 (comment)). Just changing sh_addr is not difficult to implement, but the option seems to imply some layout changes which are poorly specified. The poor specification and our unawareness of how users (riscv-pk is one, but others may use this differently) use this option makes it somewhat infeasible to implement in llvm-objcopy. I implemented --only-keep-debug by (nearly) fully understanding its behavior. For --change-addresses/--change-section-address, I'd expect something similar.
If your demand can be achieved with a linker script, you may consider a linker script command.
In
bbl/bbl.mk.in
, bbl.bin is built using change-addresses.However, this is not recognized by
llvm-objcopy
.Instead, GNU binutils
objcopy
andllvm-objcopy
both have an option called--change-start
, but I do not know whether this option works as I have not tried bbl under my workflow (my workflow only needspk
thus I have to invokemake pk
instead of justmake
)The text was updated successfully, but these errors were encountered: