D: [iurt_root_command] chroot warning: %make is deprecated, use %make_build instead Installing /home/iurt/rpmbuild/SRPMS/hardening-check-2.4-7.mga8.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.frU3R1 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf hardening-wrapper + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/hardening-wrapper_2.4.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd hardening-wrapper + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (hardening-check-locale_anti_barfer.diff):' Patch #0 (hardening-check-locale_anti_barfer.diff): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file hardened-cc patching file hardened-ld patching file hardening-check patching file hardening-check.sh + sed -i -e '/^[ \t]*if \[ -z \"\$.DEB_/d' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.nRCli6 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd hardening-wrapper + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 cat hardening-check.sh >hardening-check chmod a+x hardening-check mkdir -p build-tree # Construct wrappers. install hardened-cc hardened-ld build-tree/ # Set defaults, based on OS and ARCH. perl -pi -e 's/ #OS#/ '""'/; s/ #ARCH#/ '""'/;' build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_PIE'}=1;/default{'DEB_BUILD_HARDENING_PIE'}=0;/;" build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_STACKPROTECTOR'}=1;/default{'DEB_BUILD_HARDENING_STACKPROTECTOR'}=1;/;" build-tree/hardened-cc build-tree/hardened-ld # Duplicate cc wrapper to c++. install build-tree/hardened-cc build-tree/hardened-c++ perl -pi -e 's/hardened-cc/hardened-c++/g; s|/usr/bin/cc|/usr/bin/c++|g;' build-tree/hardened-c++ # Construct tools. install hardening.make hardening-check build-tree/ # Do not use "shell" here because it eats newlines. We want those. perl -pi -e "s/^my %libc;/my %libc = (\n$(perl hardening-check --find-libc-functions /bin/ls)\n);/;" build-tree/hardening-check hardening-check: illegal option -- - Usage: hardening-check [-p] [-s] [-f] [-r] [-b] file ... -p Do not require PIE binary -s Do not require stack protector -f Do not require fortify source -r Do not require RELRO markings -b Do not require BIND_NOW markings -q Only report failures # Construct man pages. install hardened-cc.1 hardened-ld.1 build-tree/ pod2man hardening-check > build-tree/hardening-check.1 # Duplicate cc man page to c++. install build-tree/hardened-cc.1 build-tree/hardened-c++.1 perl -pi -e 's/hardened-cc/hardened-c++/g; s/gcc/g++/g;' build-tree/hardened-c++.1 touch build-tree/stamp-build + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.0ZaMe6 + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64 '!=' / ']' + rm -rf /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64 ++ dirname /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64 + mkdir -p /home/iurt/rpmbuild/BUILDROOT + mkdir /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64 + cd hardening-wrapper + '[' 1 -eq 1 ']' + install -d /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64/usr/bin + install -d /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64/usr/share/man/man1 + install -pm 0755 build-tree/hardening-check /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64/usr/bin/ + install -pm 0644 build-tree/hardening-check.1 /home/iurt/rpmbuild/BUILDROOT/hardening-check-2.4-7.mga8.aarch64/usr/share/man/man1/ + /usr/lib/rpm/find-debuginfo.sh -j16 --strict-build-id -m -i --build-id-seed 2.4-7.mga8 --unique-debug-suffix -2.4-7.mga8.aarch64 --unique-debug-src-base hardening-check-2.4-7.mga8.aarch64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /home/iurt/rpmbuild/BUILD/hardening-wrapper + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/translate_menu + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/bin/hardening-check from /bin/sh to #!/usr/bin/sh Executing(%check): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.6EMHb4 + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd hardening-wrapper + '[' 1 -eq 1 ']' + LC_ALL=C + make check make -C tests check make[1]: Entering directory '/home/iurt/rpmbuild/BUILD/hardening-wrapper/tests' # Check the stack protector and PIE options directly, just to have # a historical record in the build logs. cc -Wall -fstack-protector hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x4006bc) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0xaaaab1aee7ac) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0xaaaad43a27ac) make -f Makefile.wrapper check make[2]: Entering directory '/home/iurt/rpmbuild/BUILD/hardening-wrapper/tests' # Test basic perl syntax for script in ../build-tree/hardened-cc ../build-tree/hardened-ld ../build-tree/hardened-c++; do perl -c $script; done ../build-tree/hardened-cc syntax OK ../build-tree/hardened-ld syntax OK ../build-tree/hardened-c++ syntax OK touch syntax.stamp # Compiler and linker options disabled. DEB_BUILD_HARDENING=0 ../build-tree/hardened-cc -B ../build-tree/ -o ../build-tree/wrapper-test-stock hello.c /usr/bin/gcc-9 -B ../build-tree/ -o ../build-tree/wrapper-test-stock hello.c readelf -ldrsW ../build-tree/wrapper-test-stock Elf file type is EXEC (Executable file) Entry point 0x4004e0 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000400238 0x0000000000400238 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x000894 0x000894 R E 0x10000 LOAD 0x000df8 0x0000000000410df8 0x0000000000410df8 0x000240 0x000248 RW 0x10000 DYNAMIC 0x000e08 0x0000000000410e08 0x0000000000410e08 0x0001d0 0x0001d0 RW 0x8 NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x000738 0x0000000000400738 0x0000000000400738 0x00004c 0x00004c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x000df8 0x0000000000410df8 0x0000000000410df8 0x000208 0x000208 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .init_array .fini_array .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.gnu.build-id .note.ABI-tag 06 .eh_frame_hdr 07 08 .init_array .fini_array .dynamic .got Dynamic section at offset 0xe08 contains 24 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x400450 0x000000000000000d (FINI) 0x4006f4 0x0000000000000019 (INIT_ARRAY) 0x410df8 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x410e00 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x400298 0x0000000000000005 (STRTAB) 0x400348 0x0000000000000006 (SYMTAB) 0x4002b8 0x000000000000000a (STRSZ) 70 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x410fe8 0x0000000000000002 (PLTRELSZ) 120 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x4003d8 0x0000000000000007 (RELA) 0x4003c0 0x0000000000000008 (RELASZ) 24 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x4003a0 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x40038e 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x3c0 contains 1 entry: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000410fe0 0000000300000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x3d8 contains 5 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000411000 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf@GLIBC_2.17 + 0 0000000000411008 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.17 + 0 0000000000411010 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000411018 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort@GLIBC_2.17 + 0 0000000000411020 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 printf@GLIBC_2.17 + 0 Symbol table '.dynsym' contains 6 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.17 (2) Symbol table '.symtab' contains 104 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000400238 0 SECTION LOCAL DEFAULT 1 2: 0000000000400254 0 SECTION LOCAL DEFAULT 2 3: 0000000000400278 0 SECTION LOCAL DEFAULT 3 4: 0000000000400298 0 SECTION LOCAL DEFAULT 4 5: 00000000004002b8 0 SECTION LOCAL DEFAULT 5 6: 0000000000400348 0 SECTION LOCAL DEFAULT 6 7: 000000000040038e 0 SECTION LOCAL DEFAULT 7 8: 00000000004003a0 0 SECTION LOCAL DEFAULT 8 9: 00000000004003c0 0 SECTION LOCAL DEFAULT 9 10: 00000000004003d8 0 SECTION LOCAL DEFAULT 10 11: 0000000000400450 0 SECTION LOCAL DEFAULT 11 12: 0000000000400470 0 SECTION LOCAL DEFAULT 12 13: 00000000004004e0 0 SECTION LOCAL DEFAULT 13 14: 00000000004006f4 0 SECTION LOCAL DEFAULT 14 15: 0000000000400708 0 SECTION LOCAL DEFAULT 15 16: 0000000000400738 0 SECTION LOCAL DEFAULT 16 17: 0000000000400788 0 SECTION LOCAL DEFAULT 17 18: 0000000000410df8 0 SECTION LOCAL DEFAULT 18 19: 0000000000410e00 0 SECTION LOCAL DEFAULT 19 20: 0000000000410e08 0 SECTION LOCAL DEFAULT 20 21: 0000000000410fd8 0 SECTION LOCAL DEFAULT 21 22: 0000000000410fe8 0 SECTION LOCAL DEFAULT 22 23: 0000000000411028 0 SECTION LOCAL DEFAULT 23 24: 0000000000411038 0 SECTION LOCAL DEFAULT 24 25: 0000000000000000 0 SECTION LOCAL DEFAULT 25 26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS /home/iurt/rpmbuild/BUILD/glibc-2.31/build-aarch64-linux/csu/abi-note.o 34: 0000000000400278 0 NOTYPE LOCAL DEFAULT 3 $d 35: 0000000000000000 0 FILE LOCAL DEFAULT ABS /home/iurt/rpmbuild/BUILD/glibc-2.31/build-aarch64-linux/csu/start.o 36: 00000000004004e0 0 NOTYPE LOCAL DEFAULT 13 $x 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS init.c 38: 0000000000400708 0 NOTYPE LOCAL DEFAULT 15 $d 39: 0000000000000000 0 FILE LOCAL DEFAULT ABS static-reloc.c 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o 41: 0000000000400530 0 NOTYPE LOCAL DEFAULT 13 $x 42: 0000000000400530 20 FUNC LOCAL DEFAULT 13 call_weak_fn 43: 0000000000400450 0 NOTYPE LOCAL DEFAULT 11 $x 44: 00000000004006f4 0 NOTYPE LOCAL DEFAULT 14 $x 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o 46: 000000000040045c 0 NOTYPE LOCAL DEFAULT 11 $x 47: 00000000004006fc 0 NOTYPE LOCAL DEFAULT 14 $x 48: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 49: 0000000000400548 0 NOTYPE LOCAL DEFAULT 13 $x 50: 0000000000400548 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 51: 0000000000400578 0 FUNC LOCAL DEFAULT 13 register_tm_clones 52: 0000000000411030 0 NOTYPE LOCAL DEFAULT 23 $d 53: 00000000004005b8 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 54: 0000000000411038 1 OBJECT LOCAL DEFAULT 24 completed.9051 55: 0000000000410e00 0 NOTYPE LOCAL DEFAULT 19 $d 56: 0000000000410e00 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 57: 00000000004005e8 0 FUNC LOCAL DEFAULT 13 frame_dummy 58: 0000000000410df8 0 NOTYPE LOCAL DEFAULT 18 $d 59: 0000000000410df8 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 60: 0000000000400710 0 NOTYPE LOCAL DEFAULT 15 $d 61: 000000000040079c 0 NOTYPE LOCAL DEFAULT 17 $d 62: 0000000000411038 0 NOTYPE LOCAL DEFAULT 24 $d 63: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 64: 0000000000400720 0 NOTYPE LOCAL DEFAULT 15 $d 65: 00000000004005ec 0 NOTYPE LOCAL DEFAULT 13 $x 66: 0000000000400800 0 NOTYPE LOCAL DEFAULT 17 $d 67: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.c 68: 0000000000400670 0 NOTYPE LOCAL DEFAULT 13 $x 69: 0000000000400848 0 NOTYPE LOCAL DEFAULT 17 $d 70: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 71: 0000000000400890 0 NOTYPE LOCAL DEFAULT 17 $d 72: 0000000000400890 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 73: 0000000000000000 0 FILE LOCAL DEFAULT ABS 74: 0000000000410e00 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 75: 0000000000410e08 0 OBJECT LOCAL DEFAULT 20 _DYNAMIC 76: 0000000000410df8 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 77: 0000000000400738 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR 78: 0000000000410fd8 0 OBJECT LOCAL DEFAULT 21 _GLOBAL_OFFSET_TABLE_ 79: 0000000000400470 0 NOTYPE LOCAL DEFAULT 12 $x 80: 00000000004006f0 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 81: 0000000000411028 0 NOTYPE WEAK DEFAULT 23 data_start 82: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 83: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 84: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 23 _edata 85: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 86: 00000000004006f4 0 FUNC GLOBAL HIDDEN 14 _fini 87: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 88: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.17 89: 0000000000411028 0 NOTYPE GLOBAL DEFAULT 23 __data_start 90: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 91: 0000000000411030 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 92: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 93: 00000000004005ec 80 FUNC GLOBAL DEFAULT 13 announcement 94: 0000000000400708 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 95: 0000000000400670 124 FUNC GLOBAL DEFAULT 13 __libc_csu_init 96: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _end 97: 00000000004004e0 0 FUNC GLOBAL DEFAULT 13 _start 98: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 __end__ 99: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 100: 000000000040063c 48 FUNC GLOBAL DEFAULT 13 main 101: 0000000000411038 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__ 102: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.17 103: 0000000000400450 0 FUNC GLOBAL HIDDEN 11 _init ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0x4005ec) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-compiled hello.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-compiled hello.c readelf -ldrsW ../build-tree/wrapper-test-compiled Elf file type is EXEC (Executable file) Entry point 0x4005e0 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000400238 0x0000000000400238 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x00099c 0x00099c R E 0x10000 LOAD 0x000de0 0x0000000000410de0 0x0000000000410de0 0x000260 0x000268 RW 0x10000 DYNAMIC 0x000df8 0x0000000000410df8 0x0000000000410df8 0x0001e0 0x0001e0 RW 0x8 NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x000838 0x0000000000400838 0x0000000000400838 0x00004c 0x00004c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x000de0 0x0000000000410de0 0x0000000000410de0 0x000220 0x000220 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .init_array .fini_array .data.rel.ro .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.gnu.build-id .note.ABI-tag 06 .eh_frame_hdr 07 08 .init_array .fini_array .data.rel.ro .dynamic .got Dynamic section at offset 0xdf8 contains 25 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [ld-linux-aarch64.so.1] 0x000000000000000c (INIT) 0x400520 0x000000000000000d (FINI) 0x4007f4 0x0000000000000019 (INIT_ARRAY) 0x410de0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x410de8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x400298 0x0000000000000005 (STRTAB) 0x400380 0x0000000000000006 (SYMTAB) 0x4002c0 0x000000000000000a (STRSZ) 140 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x410fe8 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x400490 0x0000000000000007 (RELA) 0x400460 0x0000000000000008 (RELASZ) 48 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x400420 0x000000006fffffff (VERNEEDNUM) 2 0x000000006ffffff0 (VERSYM) 0x40040c 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x460 contains 2 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000410fe0 0000000500000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000410df0 0000000700000400 R_AARCH64_COPY 0000000000410df0 __stack_chk_guard@GLIBC_2.17 + 0 Relocation section '.rela.plt' at offset 0x490 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000411000 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf@GLIBC_2.17 + 0 0000000000411008 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.17 + 0 0000000000411010 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk@GLIBC_2.17 + 0 0000000000411018 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 __stack_chk_fail@GLIBC_2.17 + 0 0000000000411020 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000411028 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort@GLIBC_2.17 + 0 Symbol table '.dynsym' contains 8 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (2) 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.17 (2) 5: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 7: 0000000000410df0 8 OBJECT GLOBAL DEFAULT 20 __stack_chk_guard@GLIBC_2.17 (3) Symbol table '.symtab' contains 108 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000400238 0 SECTION LOCAL DEFAULT 1 2: 0000000000400254 0 SECTION LOCAL DEFAULT 2 3: 0000000000400278 0 SECTION LOCAL DEFAULT 3 4: 0000000000400298 0 SECTION LOCAL DEFAULT 4 5: 00000000004002c0 0 SECTION LOCAL DEFAULT 5 6: 0000000000400380 0 SECTION LOCAL DEFAULT 6 7: 000000000040040c 0 SECTION LOCAL DEFAULT 7 8: 0000000000400420 0 SECTION LOCAL DEFAULT 8 9: 0000000000400460 0 SECTION LOCAL DEFAULT 9 10: 0000000000400490 0 SECTION LOCAL DEFAULT 10 11: 0000000000400520 0 SECTION LOCAL DEFAULT 11 12: 0000000000400540 0 SECTION LOCAL DEFAULT 12 13: 00000000004005c0 0 SECTION LOCAL DEFAULT 13 14: 00000000004007f4 0 SECTION LOCAL DEFAULT 14 15: 0000000000400808 0 SECTION LOCAL DEFAULT 15 16: 0000000000400838 0 SECTION LOCAL DEFAULT 16 17: 0000000000400888 0 SECTION LOCAL DEFAULT 17 18: 0000000000410de0 0 SECTION LOCAL DEFAULT 18 19: 0000000000410de8 0 SECTION LOCAL DEFAULT 19 20: 0000000000410df0 0 SECTION LOCAL DEFAULT 20 21: 0000000000410df8 0 SECTION LOCAL DEFAULT 21 22: 0000000000410fd8 0 SECTION LOCAL DEFAULT 22 23: 0000000000410fe8 0 SECTION LOCAL DEFAULT 23 24: 0000000000411030 0 SECTION LOCAL DEFAULT 24 25: 0000000000411040 0 SECTION LOCAL DEFAULT 25 26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 33: 0000000000000000 0 SECTION LOCAL DEFAULT 33 34: 0000000000000000 0 FILE LOCAL DEFAULT ABS /home/iurt/rpmbuild/BUILD/glibc-2.31/build-aarch64-linux/csu/abi-note.o 35: 0000000000400278 0 NOTYPE LOCAL DEFAULT 3 $d 36: 0000000000000000 0 FILE LOCAL DEFAULT ABS /home/iurt/rpmbuild/BUILD/glibc-2.31/build-aarch64-linux/csu/start.o 37: 00000000004005e0 0 NOTYPE LOCAL DEFAULT 13 $x 38: 0000000000000000 0 FILE LOCAL DEFAULT ABS init.c 39: 0000000000400808 0 NOTYPE LOCAL DEFAULT 15 $d 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS static-reloc.c 41: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o 42: 0000000000400630 0 NOTYPE LOCAL DEFAULT 13 $x 43: 0000000000400630 20 FUNC LOCAL DEFAULT 13 call_weak_fn 44: 0000000000400520 0 NOTYPE LOCAL DEFAULT 11 $x 45: 00000000004007f4 0 NOTYPE LOCAL DEFAULT 14 $x 46: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o 47: 000000000040052c 0 NOTYPE LOCAL DEFAULT 11 $x 48: 00000000004007fc 0 NOTYPE LOCAL DEFAULT 14 $x 49: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 50: 0000000000400820 0 NOTYPE LOCAL DEFAULT 15 $d 51: 00000000004006f0 0 NOTYPE LOCAL DEFAULT 13 $x 52: 00000000004005c0 0 NOTYPE LOCAL DEFAULT 13 $x 53: 0000000000400900 0 NOTYPE LOCAL DEFAULT 17 $d 54: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 55: 0000000000400648 0 NOTYPE LOCAL DEFAULT 13 $x 56: 0000000000400648 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 57: 0000000000400678 0 FUNC LOCAL DEFAULT 13 register_tm_clones 58: 0000000000411038 0 NOTYPE LOCAL DEFAULT 24 $d 59: 00000000004006b8 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 60: 0000000000411040 1 OBJECT LOCAL DEFAULT 25 completed.9051 61: 0000000000410de8 0 NOTYPE LOCAL DEFAULT 19 $d 62: 0000000000410de8 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 63: 00000000004006e8 0 FUNC LOCAL DEFAULT 13 frame_dummy 64: 0000000000410de0 0 NOTYPE LOCAL DEFAULT 18 $d 65: 0000000000410de0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 66: 0000000000400810 0 NOTYPE LOCAL DEFAULT 15 $d 67: 000000000040089c 0 NOTYPE LOCAL DEFAULT 17 $d 68: 0000000000411040 0 NOTYPE LOCAL DEFAULT 25 $d 69: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.c 70: 0000000000400770 0 NOTYPE LOCAL DEFAULT 13 $x 71: 0000000000400950 0 NOTYPE LOCAL DEFAULT 17 $d 72: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 73: 0000000000400998 0 NOTYPE LOCAL DEFAULT 17 $d 74: 0000000000400998 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 75: 0000000000000000 0 FILE LOCAL DEFAULT ABS 76: 0000000000410de8 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 77: 0000000000410df8 0 OBJECT LOCAL DEFAULT 21 _DYNAMIC 78: 0000000000410de0 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 79: 0000000000400838 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR 80: 0000000000410fd8 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_ 81: 0000000000400540 0 NOTYPE LOCAL DEFAULT 12 $x 82: 00000000004007f0 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 83: 0000000000411030 0 NOTYPE WEAK DEFAULT 24 data_start 84: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 25 __bss_start__ 85: 0000000000411048 0 NOTYPE GLOBAL DEFAULT 25 _bss_end__ 86: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _edata 87: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 88: 00000000004007f4 0 FUNC GLOBAL HIDDEN 14 _fini 89: 0000000000411048 0 NOTYPE GLOBAL DEFAULT 25 __bss_end__ 90: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.17 91: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.17 92: 0000000000411030 0 NOTYPE GLOBAL DEFAULT 24 __data_start 93: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.17 94: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 95: 0000000000410df0 8 OBJECT GLOBAL DEFAULT 20 __stack_chk_guard@@GLIBC_2.17 96: 0000000000411038 0 OBJECT GLOBAL HIDDEN 24 __dso_handle 97: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 98: 00000000004006f0 124 FUNC GLOBAL DEFAULT 13 announcement 99: 0000000000400808 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 100: 0000000000400770 124 FUNC GLOBAL DEFAULT 13 __libc_csu_init 101: 0000000000411048 0 NOTYPE GLOBAL DEFAULT 25 _end 102: 00000000004005e0 0 FUNC GLOBAL DEFAULT 13 _start 103: 0000000000411048 0 NOTYPE GLOBAL DEFAULT 25 __end__ 104: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 25 __bss_start 105: 00000000004005c0 32 FUNC GLOBAL DEFAULT 13 main 106: 0000000000411040 0 OBJECT GLOBAL HIDDEN 24 __TMC_END__ 107: 0000000000400520 0 FUNC GLOBAL HIDDEN 11 _init # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x4006f0) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x4006f0) # Enable symlink for ld to trick gcc into doing wrapped linking (cd ../build-tree && ln -s hardened-ld ld) (cd ../build-tree && ln -s hardened-ld ld.gold) # Compiler and linker options enabled. ../build-tree/hardened-cc -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-linked hello.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-linked hello.c /usr/bin/ld -z relro -z now -plugin /usr/lib/gcc/aarch64-mageia-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-mageia-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccT3uVc7.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux -o ../build-tree/wrapper-test-linked /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtbegin.o -L../build-tree -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../.. /tmp/ccxO7eC8.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtend.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is EXEC (Executable file) Entry point 0x4005e0 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000400238 0x0000000000400238 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x00099c 0x00099c R E 0x10000 LOAD 0x000d90 0x0000000000410d90 0x0000000000410d90 0x000280 0x000288 RW 0x10000 DYNAMIC 0x000da8 0x0000000000410da8 0x0000000000410da8 0x000200 0x000200 RW 0x8 NOTE 0x000254 0x0000000000400254 0x0000000000400254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x000838 0x0000000000400838 0x0000000000400838 0x00004c 0x00004c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x000d90 0x0000000000410d90 0x0000000000410d90 0x000270 0x000270 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .init_array .fini_array .data.rel.ro .dynamic .got .data .bss 04 .dynamic 05 .note.gnu.build-id .note.ABI-tag 06 .eh_frame_hdr 07 08 .init_array .fini_array .data.rel.ro .dynamic .got Dynamic section at offset 0xda8 contains 27 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [ld-linux-aarch64.so.1] 0x000000000000000c (INIT) 0x400520 0x000000000000000d (FINI) 0x4007f4 0x0000000000000019 (INIT_ARRAY) 0x410d90 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x410d98 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x400298 0x0000000000000005 (STRTAB) 0x400380 0x0000000000000006 (SYMTAB) 0x4002c0 0x000000000000000a (STRSZ) 140 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x410fa8 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x400490 0x0000000000000007 (RELA) 0x400460 0x0000000000000008 (RELASZ) 48 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x0000000000000018 (BIND_NOW) 0x000000006ffffffb (FLAGS_1) Flags: NOW 0x000000006ffffffe (VERNEED) 0x400420 0x000000006fffffff (VERNEEDNUM) 2 0x000000006ffffff0 (VERSYM) 0x40040c 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x460 contains 2 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000410ff8 0000000500000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000410da0 0000000700000400 R_AARCH64_COPY 0000000000410da0 __stack_chk_guard@GLIBC_2.17 + 0 Relocation section '.rela.plt' at offset 0x490 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000410fc0 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf@GLIBC_2.17 + 0 0000000000410fc8 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.17 + 0 0000000000410fd0 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk@GLIBC_2.17 + 0 0000000000410fd8 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 __stack_chk_fail@GLIBC_2.17 + 0 0000000000410fe0 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000410fe8 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort@GLIBC_2.17 + 0 Symbol table '.dynsym' contains 8 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (2) 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.17 (2) 5: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 7: 0000000000410da0 8 OBJECT GLOBAL DEFAULT 20 __stack_chk_guard@GLIBC_2.17 (3) Symbol table '.symtab' contains 107 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000400238 0 SECTION LOCAL DEFAULT 1 2: 0000000000400254 0 SECTION LOCAL DEFAULT 2 3: 0000000000400278 0 SECTION LOCAL DEFAULT 3 4: 0000000000400298 0 SECTION LOCAL DEFAULT 4 5: 00000000004002c0 0 SECTION LOCAL DEFAULT 5 6: 0000000000400380 0 SECTION LOCAL DEFAULT 6 7: 000000000040040c 0 SECTION LOCAL DEFAULT 7 8: 0000000000400420 0 SECTION LOCAL DEFAULT 8 9: 0000000000400460 0 SECTION LOCAL DEFAULT 9 10: 0000000000400490 0 SECTION LOCAL DEFAULT 10 11: 0000000000400520 0 SECTION LOCAL DEFAULT 11 12: 0000000000400540 0 SECTION LOCAL DEFAULT 12 13: 00000000004005c0 0 SECTION LOCAL DEFAULT 13 14: 00000000004007f4 0 SECTION LOCAL DEFAULT 14 15: 0000000000400808 0 SECTION LOCAL DEFAULT 15 16: 0000000000400838 0 SECTION LOCAL DEFAULT 16 17: 0000000000400888 0 SECTION LOCAL DEFAULT 17 18: 0000000000410d90 0 SECTION LOCAL DEFAULT 18 19: 0000000000410d98 0 SECTION LOCAL DEFAULT 19 20: 0000000000410da0 0 SECTION LOCAL DEFAULT 20 21: 0000000000410da8 0 SECTION LOCAL DEFAULT 21 22: 0000000000410fa8 0 SECTION LOCAL DEFAULT 22 23: 0000000000411000 0 SECTION LOCAL DEFAULT 23 24: 0000000000411010 0 SECTION LOCAL DEFAULT 24 25: 0000000000000000 0 SECTION LOCAL DEFAULT 25 26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS /home/iurt/rpmbuild/BUILD/glibc-2.31/build-aarch64-linux/csu/abi-note.o 34: 0000000000400278 0 NOTYPE LOCAL DEFAULT 3 $d 35: 0000000000000000 0 FILE LOCAL DEFAULT ABS /home/iurt/rpmbuild/BUILD/glibc-2.31/build-aarch64-linux/csu/start.o 36: 00000000004005e0 0 NOTYPE LOCAL DEFAULT 13 $x 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS init.c 38: 0000000000400808 0 NOTYPE LOCAL DEFAULT 15 $d 39: 0000000000000000 0 FILE LOCAL DEFAULT ABS static-reloc.c 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o 41: 0000000000400630 0 NOTYPE LOCAL DEFAULT 13 $x 42: 0000000000400630 20 FUNC LOCAL DEFAULT 13 call_weak_fn 43: 0000000000400520 0 NOTYPE LOCAL DEFAULT 11 $x 44: 00000000004007f4 0 NOTYPE LOCAL DEFAULT 14 $x 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o 46: 000000000040052c 0 NOTYPE LOCAL DEFAULT 11 $x 47: 00000000004007fc 0 NOTYPE LOCAL DEFAULT 14 $x 48: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 49: 0000000000400820 0 NOTYPE LOCAL DEFAULT 15 $d 50: 00000000004006f0 0 NOTYPE LOCAL DEFAULT 13 $x 51: 00000000004005c0 0 NOTYPE LOCAL DEFAULT 13 $x 52: 0000000000400900 0 NOTYPE LOCAL DEFAULT 17 $d 53: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 54: 0000000000400648 0 NOTYPE LOCAL DEFAULT 13 $x 55: 0000000000400648 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 56: 0000000000400678 0 FUNC LOCAL DEFAULT 13 register_tm_clones 57: 0000000000411008 0 NOTYPE LOCAL DEFAULT 23 $d 58: 00000000004006b8 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 59: 0000000000411010 1 OBJECT LOCAL DEFAULT 24 completed.9051 60: 0000000000410d98 0 NOTYPE LOCAL DEFAULT 19 $d 61: 0000000000410d98 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 62: 00000000004006e8 0 FUNC LOCAL DEFAULT 13 frame_dummy 63: 0000000000410d90 0 NOTYPE LOCAL DEFAULT 18 $d 64: 0000000000410d90 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 65: 0000000000400810 0 NOTYPE LOCAL DEFAULT 15 $d 66: 000000000040089c 0 NOTYPE LOCAL DEFAULT 17 $d 67: 0000000000411010 0 NOTYPE LOCAL DEFAULT 24 $d 68: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.c 69: 0000000000400770 0 NOTYPE LOCAL DEFAULT 13 $x 70: 0000000000400950 0 NOTYPE LOCAL DEFAULT 17 $d 71: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 72: 0000000000400998 0 NOTYPE LOCAL DEFAULT 17 $d 73: 0000000000400998 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 74: 0000000000000000 0 FILE LOCAL DEFAULT ABS 75: 0000000000410d98 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 76: 0000000000410da8 0 OBJECT LOCAL DEFAULT 21 _DYNAMIC 77: 0000000000410d90 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 78: 0000000000400838 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR 79: 0000000000410ff0 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_ 80: 0000000000400540 0 NOTYPE LOCAL DEFAULT 12 $x 81: 00000000004007f0 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 82: 0000000000411000 0 NOTYPE WEAK DEFAULT 23 data_start 83: 0000000000411010 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 84: 0000000000411018 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 85: 0000000000411010 0 NOTYPE GLOBAL DEFAULT 23 _edata 86: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 87: 00000000004007f4 0 FUNC GLOBAL HIDDEN 14 _fini 88: 0000000000411018 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 89: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.17 90: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.17 91: 0000000000411000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 92: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.17 93: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 94: 0000000000410da0 8 OBJECT GLOBAL DEFAULT 20 __stack_chk_guard@@GLIBC_2.17 95: 0000000000411008 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 96: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 97: 00000000004006f0 124 FUNC GLOBAL DEFAULT 13 announcement 98: 0000000000400808 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 99: 0000000000400770 124 FUNC GLOBAL DEFAULT 13 __libc_csu_init 100: 0000000000411018 0 NOTYPE GLOBAL DEFAULT 24 _end 101: 00000000004005e0 0 FUNC GLOBAL DEFAULT 13 _start 102: 0000000000411018 0 NOTYPE GLOBAL DEFAULT 24 __end__ 103: 0000000000411010 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 104: 00000000004005c0 32 FUNC GLOBAL DEFAULT 13 main 105: 0000000000411010 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__ 106: 0000000000400520 0 FUNC GLOBAL HIDDEN 11 _init # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x4006f0) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x4006f0) # Check state of hardening features via check script perl ../build-tree/hardening-check -p ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: no, normal executable! (ignored) Stack protected: yes Fortify Source functions: yes Read-only relocations: yes Immediate binding: yes # Manually check state of hardening features # Skipped PIE test # Test Stack Protector nm ../build-tree/wrapper-test-linked | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.17 # Test Fortify nm ../build-tree/wrapper-test-linked | egrep '__(sn)?printf_chk($|@@GLIBC)' U __printf_chk@@GLIBC_2.17 # Test Format (no-op currently) # Test for RELRO readelf -lW ../build-tree/wrapper-test-linked | grep GNU_RELRO GNU_RELRO 0x000d90 0x0000000000410d90 0x0000000000410d90 0x000270 0x000270 R 0x1 # Test for BIND_NOW readelf -dW ../build-tree/wrapper-test-linked | grep BIND_NOW 0x0000000000000018 (BIND_NOW) # Build directly with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -O2 -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -O2 -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/ld -z relro -z now -plugin /usr/lib/gcc/aarch64-mageia-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-mageia-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccPz1GZ5.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux -o ../build-tree/wrapper-test-fPIC-direct /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtbegin.o -L../build-tree -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../.. /tmp/ccJ1KFB5.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtend.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o ../build-tree/wrapper-test-fPIC-direct ../build-tree/wrapper-test-fPIC-direct: ok (0x4006e0) # Build .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -O2 -o ../build-tree/wrapper-test-fPIC.o -c hello.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -O2 -o ../build-tree/wrapper-test-fPIC.o -c hello.c # Link .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -O2 -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -O2 -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/ld -z relro -z now -plugin /usr/lib/gcc/aarch64-mageia-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-mageia-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/cccmDhW1.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux -o ../build-tree/wrapper-test-fPIC /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtbegin.o -L../build-tree -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../.. ../build-tree/wrapper-test-fPIC.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtend.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC: ok (0x4006e0) # Make sure build fails due to -Werror=format-security ! ../build-tree/hardened-cc -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-format-security format.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-format-security format.c format.c: In function 'main': format.c:11:5: error: format not a string literal and no format arguments [-Werror=format-security] 11 | return fprintf(stderr, argv[0]); | ^~~~~~ cc1: some warnings being treated as errors # Make sure build succeeds with -Wno-format-security ../build-tree/hardened-cc -B ../build-tree/ -O2 -Wno-format-security -o ../build-tree/wrapper-test-format-security format.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -Wno-format-security -o ../build-tree/wrapper-test-format-security format.c /usr/bin/ld -z relro -z now -plugin /usr/lib/gcc/aarch64-mageia-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-mageia-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccF94ZPG.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux -o ../build-tree/wrapper-test-format-security /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtbegin.o -L../build-tree -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../.. /tmp/ccd3nKSH.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtend.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o # Make sure build stack-protects a small ssp buffer ../build-tree/hardened-cc -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-ssp-buffer-size-protect ssp-buffer-size-protect.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-ssp-buffer-size-protect ssp-buffer-size-protect.c /usr/bin/ld -z relro -z now -plugin /usr/lib/gcc/aarch64-mageia-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-mageia-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccDTfvT9.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux -o ../build-tree/wrapper-test-ssp-buffer-size-protect /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtbegin.o -L../build-tree -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../.. /tmp/cc0kmTs7.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtend.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o # Test Stack Protector nm ../build-tree/wrapper-test-ssp-buffer-size-protect | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.17 # Make sure build does not stack-protects a tiny ssp buffer ../build-tree/hardened-cc -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-ssp-buffer-size-skip ssp-buffer-size-skip.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-ssp-buffer-size-skip ssp-buffer-size-skip.c /usr/bin/ld -z relro -z now -plugin /usr/lib/gcc/aarch64-mageia-linux-gnu/9/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-mageia-linux-gnu/9/lto-wrapper -plugin-opt=-fresolution=/tmp/ccYH2tlU.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr --hash-style=gnu -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux -o ../build-tree/wrapper-test-ssp-buffer-size-skip /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crti.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtbegin.o -L../build-tree -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../.. /tmp/cc06E60V.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-mageia-linux-gnu/9/crtend.o /usr/lib/gcc/aarch64-mageia-linux-gnu/9/../../../../lib64/crtn.o # Test Stack Protector is correctly skipped ! nm ../build-tree/wrapper-test-ssp-buffer-size-skip | egrep '__stack_chk_fail($|@@GLIBC)' ../build-tree/hardened-cc -B ../build-tree/ -O2 -c -o ../build-tree/wrapper-test-all.o hello.c /usr/bin/gcc-9 -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -c -o ../build-tree/wrapper-test-all.o hello.c ar r ../build-tree/wrapper-test-all.a ../build-tree/wrapper-test-all.o ar: creating ../build-tree/wrapper-test-all.a readelf -ldrsW ../build-tree/wrapper-test-all.a File: ../build-tree/wrapper-test-all.a(wrapper-test-all.o) There are no program headers in this file. There is no dynamic section in this file. Relocation section '.rela.text' at offset 0x3c0 contains 11 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000000c 0000000500000113 R_AARCH64_ADR_PREL_PG_HI21 0000000000000000 .rodata.str1.8 + 0 0000000000000010 0000000500000115 R_AARCH64_ADD_ABS_LO12_NC 0000000000000000 .rodata.str1.8 + 0 0000000000000020 0000000f00000113 R_AARCH64_ADR_PREL_PG_HI21 0000000000000000 __stack_chk_guard + 0 0000000000000024 0000000f00000115 R_AARCH64_ADD_ABS_LO12_NC 0000000000000000 __stack_chk_guard + 0 0000000000000038 000000100000011b R_AARCH64_CALL26 0000000000000000 snprintf + 0 0000000000000040 0000000e00000113 R_AARCH64_ADR_PREL_PG_HI21 0000000000000000 announcement + 0 0000000000000044 0000000500000113 R_AARCH64_ADR_PREL_PG_HI21 0000000000000000 .rodata.str1.8 + 8 0000000000000048 0000000e00000115 R_AARCH64_ADD_ABS_LO12_NC 0000000000000000 announcement + 0 000000000000004c 0000000500000115 R_AARCH64_ADD_ABS_LO12_NC 0000000000000000 .rodata.str1.8 + 8 0000000000000054 000000110000011b R_AARCH64_CALL26 0000000000000000 __printf_chk + 0 0000000000000078 000000120000011b R_AARCH64_CALL26 0000000000000000 __stack_chk_fail + 0 Relocation section '.rela.text.startup' at offset 0x4c8 contains 1 entry: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000000c 0000000e0000011b R_AARCH64_CALL26 0000000000000000 announcement + 0 Relocation section '.rela.eh_frame' at offset 0x4e0 contains 2 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000001c 0000000200000105 R_AARCH64_PREL32 0000000000000000 .text + 0 0000000000000048 0000000800000105 R_AARCH64_PREL32 0000000000000000 .text.startup + 0 Symbol table '.symtab' contains 20 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 2: 0000000000000000 0 SECTION LOCAL DEFAULT 1 3: 0000000000000000 0 SECTION LOCAL DEFAULT 3 4: 0000000000000000 0 SECTION LOCAL DEFAULT 4 5: 0000000000000000 0 SECTION LOCAL DEFAULT 5 6: 0000000000000000 0 NOTYPE LOCAL DEFAULT 5 $d 7: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 $x 8: 0000000000000000 0 SECTION LOCAL DEFAULT 6 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 6 $x 10: 0000000000000000 0 SECTION LOCAL DEFAULT 9 11: 0000000000000014 0 NOTYPE LOCAL DEFAULT 10 $d 12: 0000000000000000 0 SECTION LOCAL DEFAULT 10 13: 0000000000000000 0 SECTION LOCAL DEFAULT 8 14: 0000000000000000 124 FUNC GLOBAL DEFAULT 1 announcement 15: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __stack_chk_guard 16: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND snprintf 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __printf_chk 18: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __stack_chk_fail 19: 0000000000000000 32 FUNC GLOBAL DEFAULT 6 main perl ../build-tree/hardening-check -p ../build-tree/wrapper-test-all.a ../build-tree/wrapper-test-all.a: Position Independent Executable: not a known ELF type!? Stack protected: no, not found! Fortify Source functions: no, not found! Read-only relocations: no, not found! Immediate binding: no, not found! make[2]: *** [Makefile.common:170: ../build-tree/wrapper-test-all.a] Error 1 make[2]: Leaving directory '/home/iurt/rpmbuild/BUILD/hardening-wrapper/tests' make[1]: *** [Makefile:6: check] Error 2 make[1]: Leaving directory '/home/iurt/rpmbuild/BUILD/hardening-wrapper/tests' make: *** [Makefile:41: check] Error 2 error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.6EMHb4 (%check) RPM build errors: %make is deprecated, use %make_build instead Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.6EMHb4 (%check) I: [iurt_root_command] ERROR: chroot