mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-09 16:07:55 +01:00
build: Fixup .text section flags using objcopy and assert in pefixup.
This commit is contained in:
parent
47fe4a8063
commit
88064f86ee
2 changed files with 4 additions and 4 deletions
|
|
@ -60,10 +60,10 @@ $$(OBJ)/.$(1)-dist$(3):
|
|||
cd $$($(2)_LIBDIR$(3)) && find -type l -printf '%p\0$$(DST_LIBDIR$(3))/%p\0' | xargs $(--verbose?) -0 -r -P$$(J) -n2 cp -a
|
||||
cd $$($(2)_LIBDIR$(3)) && find -type f -not '(' -iname '*.pc' -or -iname '*.cmake' -or -iname '*.a' -or -iname '*.la' -or -iname '*.def' ')' \
|
||||
-printf '--only-keep-debug\0%p\0$$(DST_LIBDIR$(3))/%p.debug\0' | \
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n3 objcopy --file-alignment=4096
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n3 objcopy --file-alignment=4096 --set-section-flags .text=contents,alloc,load,readonly,code
|
||||
cd $$($(2)_LIBDIR$(3)) && find -type f -not '(' -iname '*.pc' -or -iname '*.cmake' -or -iname '*.a' -or -iname '*.la' -or -iname '*.def' ')' \
|
||||
-printf '--add-gnu-debuglink=$$(DST_LIBDIR$(3))/%p.debug\0--strip-debug\0%p\0$$(DST_LIBDIR$(3))/%p\0' | \
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n4 objcopy --file-alignment=4096
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n4 objcopy --file-alignment=4096 --set-section-flags .text=contents,alloc,load,readonly,code
|
||||
cd $$($(2)_LIBDIR$(3)) && find -type f \( -name '*.dll' -o -name '*.drv' \) \
|
||||
-printf '$$(DST_LIBDIR$(3))/%p\0' | \
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n1 $$(SRC)/make/pefixup.py
|
||||
|
|
@ -78,7 +78,7 @@ $$(OBJ)/.$(1)-dist$(3):
|
|||
-printf '$$(DST_LIBDIR$(3))/%p.debug\0' | xargs $(--verbose?) -0 -r -P$$(J) rm -f
|
||||
cd $$($(2)_LIBDIR$(3)) && find -type f -not '(' -iname '*.pc' -or -iname '*.cmake' -or -iname '*.a' -or -iname '*.la' -or -iname '*.def' ')' \
|
||||
-printf '--strip-debug\0%p\0$$(DST_LIBDIR$(3))/%p\0' | \
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n3 objcopy --file-alignment=4096
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n3 objcopy --file-alignment=4096 --set-section-flags .text=contents,alloc,load,readonly,code
|
||||
cd $$($(2)_LIBDIR$(3)) && find -type f \( -name '*.dll' -o -name '*.drv' \) \
|
||||
-printf '$$(DST_LIBDIR$(3))/%p\0' | \
|
||||
xargs $(--verbose?) -0 -r -P$$(J) -n1 $$(SRC)/make/pefixup.py
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue