Closed rvalle closed 5 years ago
How can I pass options to the linker? I am building a bootloader and I need to pass: -section-start=.text=0x7c00 Also, is there a way with cmake to display/log the actual compiler/linker commands being executed?
Ok, I found out how to do both things... so, in case anybody is interested:
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-section-start=.text=${BOOTLOADER_START_ADDR} ")
How can I pass options to the linker? I am building a bootloader and I need to pass: -section-start=.text=0x7c00 Also, is there a way with cmake to display/log the actual compiler/linker commands being executed?