elf: add files with SHT_RELR section (#20)

This commit is contained in:
Philip Craig
2024-11-29 15:18:01 +10:00
committed by GitHub
parent e0c21cf79e
commit 35924ae16e
3 changed files with 2 additions and 0 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2
View File
@@ -15,3 +15,5 @@ objcopy --compress-debug-sections=zlib-gnu base-debug.o base-debug-zlib-gnu.o
objcopy --compress-debug-sections=zlib base-debug.o base-debug-zlib.o
objcopy --compress-debug-sections=zstd base-debug.o base-debug-zstd.o
gcc -shared -fPIC -o libbase.so base.c -Wl,--default-symver
x86_64-linux-gnu-gcc-13 base.c -o base-relr-x86_64 -Wl,-z,pack-relative-relocs
i686-linux-gnu-gcc-13 base.c -o base-relr-i686 -Wl,-z,pack-relative-relocs