3 ms·
I had to do this in Fuchsia a while back, and the toolchain team kindly fixed up llvm-objcopy for this purpose. The section replacement flags now work as you wo
by raggi 4y ago
I had to do this in Fuchsia a while back, and the toolchain team kindly fixed up llvm-objcopy for this purpose. The section replacement flags now work as you would want for this use case (they didn't before).
- raggi 4y agoAlso, fwiw, embed isn't always the answer you want. The thing I was patching up was a large rust program (30+mb release stripped), and so it was undesirable to always have blob changes require a relink of the program. Embed as it is available in a few common languages now/soon is very convenient, but it is quite painful once the program link stage is expensive.