I'm making XEN hypervisor being able to be built with ARM Compile 6 (6.6.3 in particular). While the hypervisor sources are compiled with armclang and linked with armlink into functional binary, some intermediate steps still require GNU toolchain. One of such a step is renaming sections in object files. Originally it is done with `$(CROSS_COMPILE)objcopy --rename-section...`. I expected `fromelf --elf --rename=...` will do the same for me, but it does not.
Could you please suggest a way to rename sections in object files using tools from ARM Compiler 6?
Here is the change: https://github.com/aanisov/xen-arm-ds6/commit/38b0d794363075a42b8e63912f0942a1813573cb
https://developer.arm.com/docs/100071/latest/fromelf-command-line-options/-renameoptionoption
You must use --elf and --output with this option (c)
--elf
--output
Hello omikron,
If you look at the code by the link https://github.com/aanisov/xen-arm-ds6/commit/38b0d794363075a42b8e63912f0942a1813573cb#diff-ebede8d5d4dd741f066f051c24e7dd01R229 , you would see that I use all those options.
Fromelf does not complain about missed command line options, it just skips renaming sections.