Skip to content

Commit 055ae40

Browse files
fix typo and add reference
1 parent 6f8ab66 commit 055ae40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/startup/linux/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# A crt object has arch-specific code and arch-agnostic code. To reduce code
77
# duplication, the implementation is split into multiple units. As a result,
88
# we need to merge them into a single relocatable object.
9+
# See also: https://maskray.me/blog/2022-11-21-relocatable-linking
910
function(merge_relocatable_object name)
1011
set(obj_list "")
1112
set(fq_link_libraries "")
@@ -24,7 +25,7 @@ function(merge_relocatable_object name)
2425
${obj_list}
2526
)
2627
# 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.
2829
target_link_options(${relocatable_target} PRIVATE -r)
2930
set_target_properties(
3031
${relocatable_target}

0 commit comments

Comments
 (0)