-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
Code Generation Tools
-
CODEGEN-15675
-
-
-
default
-
When using the --relocatable option, symbol addresses defined via assignment expressions in the linker command file (e.g., renamed_sym = sym; ) are not preserved when the final absolute executable is built using a different linker command file than the one used during the relocatable link step.
Reproduce with the following commands:
c29clang main.c -Wl,-llnk1.cmd,--relocatable -o rel.out
c29clang rel.out -Wl,-llnk2.cmd,-umain,-mtest.map
This will reflect the following symbol placement:
page address name ---- ------- ---- 0 200e0000 main 0 100e0000 renamed_main 0 100e0010 renamed_test 0 200e0010 test