I currently can’t build my program as I require inheriting another project via linking it with a redefined symbol. I can’t seem to find any other alternative. Afaik binutils which is a gcc dependency should package gobjcopy or objcopy and llvm should include llvm-objcopy.
I expect to be able to make this call:
objcopy --redefine-sym “main=example_main” example.o
Source: