Sfoglia il codice sorgente

chore(usp): move usp linker args into ldscript

greatbridf 2 anni fa
parent
commit
4596fdcda2
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      user-space-program/CMakeLists.txt
  2. 1 1
      user-space-program/script.ld

+ 1 - 1
user-space-program/CMakeLists.txt

@@ -5,7 +5,7 @@ set(CMAKE_C_FLAGS "-nostdinc -nostdlib -static -m32 -W -Wall -Wextra -Werror -ms
 set(CMAKE_ASM_FLAGS "-m32 -static -mstack-protector-guard=global -g0")
 
 link_libraries(gblibc)
-add_link_options(-nostdlib -Ttext 0x40000000 -T ${CMAKE_CURRENT_SOURCE_DIR}/script.ld)
+add_link_options(-nostdlib -T ${CMAKE_CURRENT_SOURCE_DIR}/script.ld)
 # set(LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/script.ld)
 
 set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "")

+ 1 - 1
user-space-program/script.ld

@@ -11,7 +11,7 @@ MEMORY
 
 SECTIONS
 {
-    .text :
+    .text 0x40000000 :
     {
         *(.text)
         *(.text*)