优化可执行文件大小
This commit is contained in:
@@ -33,7 +33,7 @@ add_dependencies(init.elf
|
||||
muslc
|
||||
)
|
||||
set_target_properties(init.elf PROPERTIES LINK_FLAGS
|
||||
"-T ${CMAKE_CURRENT_SOURCE_DIR}/link.lds -pie "
|
||||
"-T ${CMAKE_CURRENT_SOURCE_DIR}/link.lds -pie --gc-section "
|
||||
)
|
||||
#-T ${CMAKE_CURRENT_SOURCE_DIR}/link.lds
|
||||
add_custom_target(
|
||||
|
||||
Reference in New Issue
Block a user