File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 6
6
# A crt object has arch-specific code and arch-agnostic code. To reduce code
7
7
# duplication, the implementation is split into multiple units. As a result,
8
8
# we need to merge them into a single relocatable object.
9
+ # See also: https://maskray.me/blog/2022-11-21-relocatable-linking
9
10
function (merge_relocatable_object name )
10
11
set (obj_list "" )
11
12
set (fq_link_libraries "" )
@@ -24,7 +25,7 @@ function(merge_relocatable_object name)
24
25
${obj_list}
25
26
)
26
27
# Pass -r to the driver is much cleaner than passing -Wl,-r: the compiler knows it is
27
- # a relocatable linking and will not passing other irrelevant flags to the linker.
28
+ # a relocatable linking and will not pass other irrelevant flags to the linker.
28
29
target_link_options (${relocatable_target} PRIVATE -r )
29
30
set_target_properties (
30
31
${relocatable_target}
You can’t perform that action at this time.
0 commit comments