Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
Showing results for 
Search instead for 
Did you mean: 

--version-script ld option


--version-script ld option


Iam trying to create a object file on linux using ld -r option and a mapfile( --version-script option ) to export the symbols. However, ld seems to ignore the mapfile if I try to use it with -r option( to build an object file ) while accepts it when I specify -G option( shared library ). So is it true that it's not possible to use the mapfile while creating object files on linux or else am I doing something wrong.

The version of ld Iam using is