debspawn 0.6.3 on cumin at 2023-06-21 20:31:56 UTC+0000 dpkg-source: info: extracting hardening-wrapper in hardening-wrapper-2.8+nmu2 dpkg-source: info: unpacking hardening-wrapper_2.8+nmu2.tar.xz ╔═══════════════════════╗ ║ Package build ║ ╚═══════════════════════╝ Package: hardening-wrapper Version: 2.8+nmu2 Distribution: landing Architecture: arm64 Free space in workspace: 84.4GiB ┌───────────────────────────────────────┐ │ Preparing container for build │ └───────────────────────────────────────┘ Get:1 https://repo.pureos.net/pureos landing InRelease [8717 B] Get:2 https://repo.pureos.net/pureos landing/main all Packages [3713 kB] Fetched 3722 kB in 3s (1377 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... The following packages will be upgraded: dpkg-dev libdpkg-perl 2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1960 kB of archives. After this operation, 1529 kB disk space will be freed. debconf: delaying package configuration, since apt-utils is not installed (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 13138 files and directories currently installed.) Preparing to unpack .../dpkg-dev_1.21.22pureos1_all.deb ... Unpacking dpkg-dev (1.21.22pureos1) over (1.20.12pureos1) ... Preparing to unpack .../libdpkg-perl_1.21.22pureos1_all.deb ... Unpacking libdpkg-perl (1.21.22pureos1) over (1.20.12pureos1) ... Setting up libdpkg-perl (1.21.22pureos1) ... Setting up dpkg-dev (1.21.22pureos1) ... Reading package lists... Building dependency tree... Reading state information... build-essential is already the newest version (12.9). dpkg-dev is already the newest version (1.21.22pureos1). fakeroot is already the newest version (1.31-1.2). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. ┌───────────────────────────────────────────────┐ │ Installing package build-dependencies │ └───────────────────────────────────────────────┘ Note, using directory './' to get the build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils debhelper dh-autoreconf dh-strip-nondeterminism dwz file gettext gettext-base groff-base intltool-debian libarchive-zip-perl libdebhelper-perl libelf1 libfile-stripnondeterminism-perl libicu72 libmagic-mgc libmagic1 libpipeline1 libsub-override-perl libtool libuchardet0 libxml2 m4 man-db po-debconf sensible-utils 0 upgraded, 30 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/18.3 MB of archives. After this operation, 74.4 MB of additional disk space will be used. debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 13167 files and directories currently installed.) Preparing to unpack .../00-sensible-utils_0.0.17+nmu1_all.deb ... Unpacking sensible-utils (0.0.17+nmu1) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../01-libmagic-mgc_1%3a5.44-3_arm64.deb ... Unpacking libmagic-mgc (1:5.44-3) ... Selecting previously unselected package libmagic1:arm64. Preparing to unpack .../02-libmagic1_1%3a5.44-3_arm64.deb ... Unpacking libmagic1:arm64 (1:5.44-3) ... Selecting previously unselected package file. Preparing to unpack .../03-file_1%3a5.44-3_arm64.deb ... Unpacking file (1:5.44-3) ... Selecting previously unselected package gettext-base. Preparing to unpack .../04-gettext-base_0.21-12_arm64.deb ... Unpacking gettext-base (0.21-12) ... Selecting previously unselected package libuchardet0:arm64. Preparing to unpack .../05-libuchardet0_0.0.7-1_arm64.deb ... Unpacking libuchardet0:arm64 (0.0.7-1) ... Selecting previously unselected package groff-base. Preparing to unpack .../06-groff-base_1.22.4-10_arm64.deb ... Unpacking groff-base (1.22.4-10) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../07-bsdextrautils_2.38.1-5pureos1_arm64.deb ... Unpacking bsdextrautils (2.38.1-5pureos1) ... Selecting previously unselected package libpipeline1:arm64. Preparing to unpack .../08-libpipeline1_1.5.7-1_arm64.deb ... Unpacking libpipeline1:arm64 (1.5.7-1) ... Selecting previously unselected package man-db. Preparing to unpack .../09-man-db_2.11.2-2_arm64.deb ... Unpacking man-db (2.11.2-2) ... Selecting previously unselected package m4. Preparing to unpack .../10-m4_1.4.19-3_arm64.deb ... Unpacking m4 (1.4.19-3) ... Selecting previously unselected package autoconf. Preparing to unpack .../11-autoconf_2.71-3_all.deb ... Unpacking autoconf (2.71-3) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../12-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../13-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../14-autopoint_0.21-12_all.deb ... Unpacking autopoint (0.21-12) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../15-libdebhelper-perl_13.11.4_all.deb ... Unpacking libdebhelper-perl (13.11.4) ... Selecting previously unselected package libtool. Preparing to unpack .../16-libtool_2.4.7-5_all.deb ... Unpacking libtool (2.4.7-5) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../17-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../18-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../19-libsub-override-perl_0.09-4_all.deb ... Unpacking libsub-override-perl (0.09-4) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../20-libfile-stripnondeterminism-perl_1.13.1-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.13.1-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../21-dh-strip-nondeterminism_1.13.1-1_all.deb ... Unpacking dh-strip-nondeterminism (1.13.1-1) ... Selecting previously unselected package libelf1:arm64. Preparing to unpack .../22-libelf1_0.188-2.1_arm64.deb ... Unpacking libelf1:arm64 (0.188-2.1) ... Selecting previously unselected package dwz. Preparing to unpack .../23-dwz_0.15-1_arm64.deb ... Unpacking dwz (0.15-1) ... Selecting previously unselected package libicu72:arm64. Preparing to unpack .../24-libicu72_72.1-3_arm64.deb ... Unpacking libicu72:arm64 (72.1-3) ... Selecting previously unselected package libxml2:arm64. Preparing to unpack .../25-libxml2_2.9.14+dfsg-1.2_arm64.deb ... Unpacking libxml2:arm64 (2.9.14+dfsg-1.2) ... Selecting previously unselected package gettext. Preparing to unpack .../26-gettext_0.21-12_arm64.deb ... Unpacking gettext (0.21-12) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../27-intltool-debian_0.35.0+20060710.6_all.deb ... Unpacking intltool-debian (0.35.0+20060710.6) ... Selecting previously unselected package po-debconf. Preparing to unpack .../28-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../29-debhelper_13.11.4_all.deb ... Unpacking debhelper (13.11.4) ... Setting up libpipeline1:arm64 (1.5.7-1) ... Setting up libicu72:arm64 (72.1-3) ... Setting up bsdextrautils (2.38.1-5pureos1) ... Setting up libmagic-mgc (1:5.44-3) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libdebhelper-perl (13.11.4) ... Setting up libmagic1:arm64 (1:5.44-3) ... Setting up gettext-base (0.21-12) ... Setting up m4 (1.4.19-3) ... Setting up file (1:5.44-3) ... Setting up autotools-dev (20220109.1) ... Setting up autopoint (0.21-12) ... Setting up autoconf (2.71-3) ... Setting up sensible-utils (0.0.17+nmu1) ... Setting up libuchardet0:arm64 (0.0.7-1) ... Setting up libsub-override-perl (0.09-4) ... Setting up libelf1:arm64 (0.188-2.1) ... Setting up libxml2:arm64 (2.9.14+dfsg-1.2) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.13.1-1) ... Setting up gettext (0.21-12) ... Setting up libtool (2.4.7-5) ... Setting up intltool-debian (0.35.0+20060710.6) ... Setting up dh-autoreconf (20) ... Setting up dh-strip-nondeterminism (1.13.1-1) ... Setting up dwz (0.15-1) ... Setting up groff-base (1.22.4-10) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up man-db (2.11.2-2) ... Building database of manual pages ... Setting up debhelper (13.11.4) ... Processing triggers for libc-bin (2.36-9) ... ┌───────────────┐ │ Build │ └───────────────┘ dpkg-buildpackage: info: source package hardening-wrapper dpkg-buildpackage: info: source version 2.8+nmu2 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: host architecture arm64  dpkg-source --before-build .  fakeroot debian/rules clean dh clean dh: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_auto_clean dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use) make -j1 clean make[1]: Entering directory '/srv/build/hardening-wrapper-2.8+nmu2' rm -rf build-tree make[1]: Leaving directory '/srv/build/hardening-wrapper-2.8+nmu2' debian/rules override_dh_clean make[1]: Entering directory '/srv/build/hardening-wrapper-2.8+nmu2' for f in debian/*.in; do \ rm -f ${f%*.in}; \ done dh_clean dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use) make[1]: Leaving directory '/srv/build/hardening-wrapper-2.8+nmu2'  debian/rules build-arch dh build-arch dh: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_update_autotools_config -a dh_auto_configure -a dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use) dh_auto_build -a dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use) make -j1 make[1]: Entering directory '/srv/build/hardening-wrapper-2.8+nmu2' if [ -z "arm64" ]; then echo No DEB_HOST_ARCH; exit 1; fi if [ -z "linux" ]; then echo No DEB_HOST_ARCH_OS; exit 1; fi 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#/ '"linux"'/; s/ #ARCH#/ '"arm64"'/;' build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_PIE'}=1;/default{'DEB_BUILD_HARDENING_PIE'}=1;/;" 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 # 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 make[1]: Leaving directory '/srv/build/hardening-wrapper-2.8+nmu2' dh_auto_test -a dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 in use) make -j1 check make[1]: Entering directory '/srv/build/hardening-wrapper-2.8+nmu2' make -C tests check make[2]: Entering directory '/srv/build/hardening-wrapper-2.8+nmu2/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 (0xaaaac90d0894) cc -Wall -fstack-protector-strong hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0xaaaabf1c0894) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0xaaaad57107d4) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0xaaaae1dd07d4) make -f Makefile.wrapper check make[3]: Entering directory '/srv/build/hardening-wrapper-2.8+nmu2/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/aarch64-linux-gnu-gcc-12 -B ../build-tree/ -o ../build-tree/wrapper-test-stock hello.c readelf -ldrsW ../build-tree/wrapper-test-stock Elf file type is DYN (Position-Independent Executable file) Entry point 0x6c0 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000000238 0x0000000000000238 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x0009a0 0x0009a0 R E 0x10000 LOAD 0x00fdc8 0x000000000001fdc8 0x000000000001fdc8 0x000278 0x000280 RW 0x10000 DYNAMIC 0x00fdd8 0x000000000001fdd8 0x000000000001fdd8 0x0001e0 0x0001e0 RW 0x8 NOTE 0x000254 0x0000000000000254 0x0000000000000254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x000888 0x0000000000000888 0x0000000000000888 0x000044 0x000044 R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x00fdc8 0x000000000001fdc8 0x000000000001fdc8 0x000238 0x000238 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 0xfdd8 contains 26 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x5f0 0x000000000000000d (FINI) 0x854 0x0000000000000019 (INIT_ARRAY) 0x1fdc8 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x1fdd0 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x298 0x0000000000000005 (STRTAB) 0x3c0 0x0000000000000006 (SYMTAB) 0x2b8 0x000000000000000a (STRSZ) 150 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x1ffe8 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x560 0x0000000000000007 (RELA) 0x4a0 0x0000000000000008 (RELASZ) 192 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffb (FLAGS_1) Flags: PIE 0x000000006ffffffe (VERNEED) 0x470 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x456 0x000000006ffffff9 (RELACOUNT) 4 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x4a0 contains 8 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000001fdc8 0000000000000403 R_AARCH64_RELATIVE 7d0 000000000001fdd0 0000000000000403 R_AARCH64_RELATIVE 780 000000000001ffd8 0000000000000403 R_AARCH64_RELATIVE 824 0000000000020038 0000000000000403 R_AARCH64_RELATIVE 20038 000000000001ffc0 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 000000000001ffc8 0000000500000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize@GLIBC_2.17 + 0 000000000001ffd0 0000000700000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 000000000001ffe0 0000000900000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x560 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000020000 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.34 + 0 0000000000020008 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize@GLIBC_2.17 + 0 0000000000020010 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf@GLIBC_2.17 + 0 0000000000020018 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000020020 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort@GLIBC_2.17 + 0 0000000000020028 0000000a00000402 R_AARCH64_JUMP_SLOT 0000000000000000 printf@GLIBC_2.17 + 0 Symbol table '.dynsym' contains 11 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000005f0 0 SECTION LOCAL DEFAULT 11 .init 2: 0000000000020030 0 SECTION LOCAL DEFAULT 23 .data 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.34 (2) 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 5: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (3) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (3) 7: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 8: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (3) 9: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 10: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.17 (3) Symbol table '.symtab' contains 91 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 .interp 2: 0000000000000254 0 SECTION LOCAL DEFAULT 2 .note.gnu.build-id 3: 0000000000000278 0 SECTION LOCAL DEFAULT 3 .note.ABI-tag 4: 0000000000000298 0 SECTION LOCAL DEFAULT 4 .gnu.hash 5: 00000000000002b8 0 SECTION LOCAL DEFAULT 5 .dynsym 6: 00000000000003c0 0 SECTION LOCAL DEFAULT 6 .dynstr 7: 0000000000000456 0 SECTION LOCAL DEFAULT 7 .gnu.version 8: 0000000000000470 0 SECTION LOCAL DEFAULT 8 .gnu.version_r 9: 00000000000004a0 0 SECTION LOCAL DEFAULT 9 .rela.dyn 10: 0000000000000560 0 SECTION LOCAL DEFAULT 10 .rela.plt 11: 00000000000005f0 0 SECTION LOCAL DEFAULT 11 .init 12: 0000000000000610 0 SECTION LOCAL DEFAULT 12 .plt 13: 00000000000006c0 0 SECTION LOCAL DEFAULT 13 .text 14: 0000000000000854 0 SECTION LOCAL DEFAULT 14 .fini 15: 0000000000000868 0 SECTION LOCAL DEFAULT 15 .rodata 16: 0000000000000888 0 SECTION LOCAL DEFAULT 16 .eh_frame_hdr 17: 00000000000008d0 0 SECTION LOCAL DEFAULT 17 .eh_frame 18: 000000000001fdc8 0 SECTION LOCAL DEFAULT 18 .init_array 19: 000000000001fdd0 0 SECTION LOCAL DEFAULT 19 .fini_array 20: 000000000001fdd8 0 SECTION LOCAL DEFAULT 20 .dynamic 21: 000000000001ffb8 0 SECTION LOCAL DEFAULT 21 .got 22: 000000000001ffe8 0 SECTION LOCAL DEFAULT 22 .got.plt 23: 0000000000020030 0 SECTION LOCAL DEFAULT 23 .data 24: 0000000000020040 0 SECTION LOCAL DEFAULT 24 .bss 25: 0000000000000000 0 SECTION LOCAL DEFAULT 25 .comment 26: 0000000000000000 0 FILE LOCAL DEFAULT ABS Scrt1.o 27: 0000000000000278 0 NOTYPE LOCAL DEFAULT 3 $d 28: 0000000000000278 32 OBJECT LOCAL DEFAULT 3 __abi_tag 29: 00000000000006c0 0 NOTYPE LOCAL DEFAULT 13 $x 30: 00000000000008e4 0 NOTYPE LOCAL DEFAULT 17 $d 31: 0000000000000868 0 NOTYPE LOCAL DEFAULT 15 $d 32: 0000000000000000 0 FILE LOCAL DEFAULT ABS crti.o 33: 00000000000006f4 0 NOTYPE LOCAL DEFAULT 13 $x 34: 00000000000006f4 20 FUNC LOCAL DEFAULT 13 call_weak_fn 35: 00000000000005f0 0 NOTYPE LOCAL DEFAULT 11 $x 36: 0000000000000854 0 NOTYPE LOCAL DEFAULT 14 $x 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtn.o 38: 0000000000000600 0 NOTYPE LOCAL DEFAULT 11 $x 39: 0000000000000860 0 NOTYPE LOCAL DEFAULT 14 $x 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 41: 0000000000000710 0 NOTYPE LOCAL DEFAULT 13 $x 42: 0000000000000710 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 43: 0000000000000740 0 FUNC LOCAL DEFAULT 13 register_tm_clones 44: 0000000000020038 0 NOTYPE LOCAL DEFAULT 23 $d 45: 0000000000000780 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 46: 0000000000020040 1 OBJECT LOCAL DEFAULT 24 completed.0 47: 000000000001fdd0 0 NOTYPE LOCAL DEFAULT 19 $d 48: 000000000001fdd0 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 49: 00000000000007d0 0 FUNC LOCAL DEFAULT 13 frame_dummy 50: 000000000001fdc8 0 NOTYPE LOCAL DEFAULT 18 $d 51: 000000000001fdc8 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 52: 00000000000008f8 0 NOTYPE LOCAL DEFAULT 17 $d 53: 0000000000020040 0 NOTYPE LOCAL DEFAULT 24 $d 54: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 55: 0000000000000870 0 NOTYPE LOCAL DEFAULT 15 $d 56: 00000000000007d4 0 NOTYPE LOCAL DEFAULT 13 $x 57: 0000000000000958 0 NOTYPE LOCAL DEFAULT 17 $d 58: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 59: 000000000000099c 0 NOTYPE LOCAL DEFAULT 17 $d 60: 000000000000099c 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 61: 0000000000000000 0 FILE LOCAL DEFAULT ABS 62: 000000000001fdd8 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 63: 0000000000000888 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR 64: 000000000001ffb8 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 65: 0000000000000610 0 NOTYPE LOCAL DEFAULT 12 $x 66: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.34 67: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 68: 0000000000020030 0 NOTYPE WEAK DEFAULT 23 data_start 69: 0000000000020040 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 70: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 71: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 72: 0000000000020040 0 NOTYPE GLOBAL DEFAULT 23 _edata 73: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 74: 0000000000000854 0 FUNC GLOBAL HIDDEN 14 _fini 75: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 76: 0000000000020030 0 NOTYPE GLOBAL DEFAULT 23 __data_start 77: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 78: 0000000000020038 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 79: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 80: 00000000000007d4 80 FUNC GLOBAL DEFAULT 13 announcement 81: 0000000000000868 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 82: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 24 _end 83: 00000000000006c0 52 FUNC GLOBAL DEFAULT 13 _start 84: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 24 __end__ 85: 0000000000020040 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 86: 0000000000000824 48 FUNC GLOBAL DEFAULT 13 main 87: 0000000000020040 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__ 88: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 89: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.17 90: 00000000000005f0 0 FUNC GLOBAL HIDDEN 11 _init ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0xaaaab7c507d4) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -ffile-prefix-map=/srv/build/hardening-wrapper-2.8+nmu2=. -specs=/usr/share/dpkg/no-pie-compile.specs -O2 -specs=/usr/share/dpkg/no-pie-link.specs -o ../build-tree/wrapper-test-compiled hello.c /usr/bin/aarch64-linux-gnu-gcc-12 -fstack-protector-strong -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -ffile-prefix-map=/srv/build/hardening-wrapper-2.8+nmu2=. -specs=/usr/share/dpkg/no-pie-compile.specs -O2 -specs=/usr/share/dpkg/no-pie-link.specs -o ../build-tree/wrapper-test-compiled hello.c readelf -ldrsW ../build-tree/wrapper-test-compiled Elf file type is DYN (Position-Independent Executable file) Entry point 0x7c0 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000000238 0x0000000000000238 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000ac0 0x000ac0 R E 0x10000 LOAD 0x00fdb0 0x000000000001fdb0 0x000000000001fdb0 0x000298 0x0002a0 RW 0x10000 DYNAMIC 0x00fdc0 0x000000000001fdc0 0x000000000001fdc0 0x0001f0 0x0001f0 RW 0x8 NOTE 0x000254 0x0000000000000254 0x0000000000000254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x0009a0 0x00000000000009a0 0x00000000000009a0 0x000044 0x000044 R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x00fdb0 0x000000000001fdb0 0x000000000001fdb0 0x000250 0x000250 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 0xfdc0 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) 0x6b8 0x000000000000000d (FINI) 0x96c 0x0000000000000019 (INIT_ARRAY) 0x1fdb0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x1fdb8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x298 0x0000000000000005 (STRTAB) 0x3f0 0x0000000000000006 (SYMTAB) 0x2b8 0x000000000000000a (STRSZ) 220 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x1ffe8 0x0000000000000002 (PLTRELSZ) 168 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x610 0x0000000000000007 (RELA) 0x538 0x0000000000000008 (RELASZ) 216 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffb (FLAGS_1) Flags: PIE 0x000000006ffffffe (VERNEED) 0x4e8 0x000000006fffffff (VERNEEDNUM) 2 0x000000006ffffff0 (VERSYM) 0x4cc 0x000000006ffffff9 (RELACOUNT) 4 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x538 contains 9 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000001fdb0 0000000000000403 R_AARCH64_RELATIVE 8d0 000000000001fdb8 0000000000000403 R_AARCH64_RELATIVE 880 000000000001ffd8 0000000000000403 R_AARCH64_RELATIVE 780 0000000000020040 0000000000000403 R_AARCH64_RELATIVE 20040 000000000001ffb8 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 000000000001ffc0 0000000500000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize@GLIBC_2.17 + 0 000000000001ffc8 0000000900000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 000000000001ffd0 0000000a00000401 R_AARCH64_GLOB_DAT 0000000000000000 __stack_chk_guard@GLIBC_2.17 + 0 000000000001ffe0 0000000c00000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x610 contains 7 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000020000 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.34 + 0 0000000000020008 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize@GLIBC_2.17 + 0 0000000000020010 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf@GLIBC_2.17 + 0 0000000000020018 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk@GLIBC_2.17 + 0 0000000000020020 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 __stack_chk_fail@GLIBC_2.17 + 0 0000000000020028 0000000900000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000020030 0000000b00000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort@GLIBC_2.17 + 0 Symbol table '.dynsym' contains 13 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000006b8 0 SECTION LOCAL DEFAULT 11 .init 2: 0000000000020038 0 SECTION LOCAL DEFAULT 23 .data 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.34 (2) 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 5: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (3) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (3) 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (3) 8: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.17 (3) 9: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 10: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.17 (4) 11: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (3) 12: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable Symbol table '.symtab' contains 102 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 .interp 2: 0000000000000254 0 SECTION LOCAL DEFAULT 2 .note.gnu.build-id 3: 0000000000000278 0 SECTION LOCAL DEFAULT 3 .note.ABI-tag 4: 0000000000000298 0 SECTION LOCAL DEFAULT 4 .gnu.hash 5: 00000000000002b8 0 SECTION LOCAL DEFAULT 5 .dynsym 6: 00000000000003f0 0 SECTION LOCAL DEFAULT 6 .dynstr 7: 00000000000004cc 0 SECTION LOCAL DEFAULT 7 .gnu.version 8: 00000000000004e8 0 SECTION LOCAL DEFAULT 8 .gnu.version_r 9: 0000000000000538 0 SECTION LOCAL DEFAULT 9 .rela.dyn 10: 0000000000000610 0 SECTION LOCAL DEFAULT 10 .rela.plt 11: 00000000000006b8 0 SECTION LOCAL DEFAULT 11 .init 12: 00000000000006d0 0 SECTION LOCAL DEFAULT 12 .plt 13: 0000000000000780 0 SECTION LOCAL DEFAULT 13 .text 14: 000000000000096c 0 SECTION LOCAL DEFAULT 14 .fini 15: 0000000000000980 0 SECTION LOCAL DEFAULT 15 .rodata 16: 00000000000009a0 0 SECTION LOCAL DEFAULT 16 .eh_frame_hdr 17: 00000000000009e8 0 SECTION LOCAL DEFAULT 17 .eh_frame 18: 000000000001fdb0 0 SECTION LOCAL DEFAULT 18 .init_array 19: 000000000001fdb8 0 SECTION LOCAL DEFAULT 19 .fini_array 20: 000000000001fdc0 0 SECTION LOCAL DEFAULT 20 .dynamic 21: 000000000001ffb0 0 SECTION LOCAL DEFAULT 21 .got 22: 000000000001ffe8 0 SECTION LOCAL DEFAULT 22 .got.plt 23: 0000000000020038 0 SECTION LOCAL DEFAULT 23 .data 24: 0000000000020048 0 SECTION LOCAL DEFAULT 24 .bss 25: 0000000000000000 0 SECTION LOCAL DEFAULT 25 .comment 26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 .debug_aranges 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 .debug_info 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 .debug_abbrev 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 .debug_line 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 .debug_str 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 .debug_line_str 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 .debug_loclists 33: 0000000000000000 0 SECTION LOCAL DEFAULT 33 .debug_rnglists 34: 0000000000000000 0 FILE LOCAL DEFAULT ABS Scrt1.o 35: 0000000000000278 0 NOTYPE LOCAL DEFAULT 3 $d 36: 0000000000000278 32 OBJECT LOCAL DEFAULT 3 __abi_tag 37: 00000000000007c0 0 NOTYPE LOCAL DEFAULT 13 $x 38: 00000000000009fc 0 NOTYPE LOCAL DEFAULT 17 $d 39: 0000000000000980 0 NOTYPE LOCAL DEFAULT 15 $d 40: 0000000000000000 0 FILE LOCAL DEFAULT ABS crti.o 41: 00000000000007f4 0 NOTYPE LOCAL DEFAULT 13 $x 42: 00000000000007f4 20 FUNC LOCAL DEFAULT 13 call_weak_fn 43: 00000000000006b8 0 NOTYPE LOCAL DEFAULT 11 $x 44: 000000000000096c 0 NOTYPE LOCAL DEFAULT 14 $x 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtn.o 46: 00000000000006c8 0 NOTYPE LOCAL DEFAULT 11 $x 47: 0000000000000978 0 NOTYPE LOCAL DEFAULT 14 $x 48: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 49: 0000000000000988 0 NOTYPE LOCAL DEFAULT 15 $d 50: 00000000000008e0 0 NOTYPE LOCAL DEFAULT 13 $x 51: 0000000000000780 0 NOTYPE LOCAL DEFAULT 13 $x 52: 0000000000000a70 0 NOTYPE LOCAL DEFAULT 17 $d 53: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 54: 0000000000000810 0 NOTYPE LOCAL DEFAULT 13 $x 55: 0000000000000810 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 56: 0000000000000840 0 FUNC LOCAL DEFAULT 13 register_tm_clones 57: 0000000000020040 0 NOTYPE LOCAL DEFAULT 23 $d 58: 0000000000000880 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 59: 0000000000020048 1 OBJECT LOCAL DEFAULT 24 completed.0 60: 000000000001fdb8 0 NOTYPE LOCAL DEFAULT 19 $d 61: 000000000001fdb8 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 62: 00000000000008d0 0 FUNC LOCAL DEFAULT 13 frame_dummy 63: 000000000001fdb0 0 NOTYPE LOCAL DEFAULT 18 $d 64: 000000000001fdb0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 65: 0000000000000a10 0 NOTYPE LOCAL DEFAULT 17 $d 66: 0000000000020048 0 NOTYPE LOCAL DEFAULT 24 $d 67: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 68: 0000000000000abc 0 NOTYPE LOCAL DEFAULT 17 $d 69: 0000000000000abc 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 70: 0000000000000000 0 FILE LOCAL DEFAULT ABS 71: 000000000001fdc0 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 72: 00000000000009a0 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR 73: 000000000001ffb0 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 74: 00000000000006d0 0 NOTYPE LOCAL DEFAULT 12 $x 75: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.34 76: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 77: 0000000000020038 0 NOTYPE WEAK DEFAULT 23 data_start 78: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 79: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 80: 0000000000020050 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 81: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 23 _edata 82: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 83: 000000000000096c 0 FUNC GLOBAL HIDDEN 14 _fini 84: 0000000000020050 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 85: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 86: 0000000000020038 0 NOTYPE GLOBAL DEFAULT 23 __data_start 87: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.17 88: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 89: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.17 90: 0000000000020040 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 91: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 92: 00000000000008e0 140 FUNC GLOBAL DEFAULT 13 announcement 93: 0000000000000980 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 94: 0000000000020050 0 NOTYPE GLOBAL DEFAULT 24 _end 95: 00000000000007c0 52 FUNC GLOBAL DEFAULT 13 _start 96: 0000000000020050 0 NOTYPE GLOBAL DEFAULT 24 __end__ 97: 0000000000020048 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 98: 0000000000000780 32 FUNC GLOBAL DEFAULT 13 main 99: 0000000000020048 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__ 100: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 101: 00000000000006b8 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 (0xaaaadda408e0) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0xaaaae57d08e0) # 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/ -g -O2 -ffile-prefix-map=/srv/build/hardening-wrapper-2.8+nmu2=. -specs=/usr/share/dpkg/no-pie-compile.specs -O2 -specs=/usr/share/dpkg/no-pie-link.specs -o ../build-tree/wrapper-test-linked hello.c /usr/bin/aarch64-linux-gnu-gcc-12 -fstack-protector-strong -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -ffile-prefix-map=/srv/build/hardening-wrapper-2.8+nmu2=. -specs=/usr/share/dpkg/no-pie-compile.specs -O2 -specs=/usr/share/dpkg/no-pie-link.specs -o ../build-tree/wrapper-test-linked hello.c /usr/bin/aarch64-linux-gnu-ld.bfd -z relro -z now -plugin /usr/lib/gcc/aarch64-linux-gnu/12/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/12/lto-wrapper -plugin-opt=-fresolution=/tmp/cc2vtGBk.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 --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -o ../build-tree/wrapper-test-linked /usr/lib/gcc/aarch64-linux-gnu/12/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/12/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/12/crtbeginS.o -L../build-tree -L/usr/lib/gcc/aarch64-linux-gnu/12 -L/usr/lib/gcc/aarch64-linux-gnu/12/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/12/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/12/../../.. /tmp/cc39xBfB.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/aarch64-linux-gnu/12/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/12/../../../aarch64-linux-gnu/crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is DYN (Position-Independent Executable file) Entry point 0x7c0 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 0x0001f8 R 0x8 INTERP 0x000238 0x0000000000000238 0x0000000000000238 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000ac0 0x000ac0 R E 0x10000 LOAD 0x00fd68 0x000000000001fd68 0x000000000001fd68 0x0002a8 0x0002b0 RW 0x10000 DYNAMIC 0x00fd78 0x000000000001fd78 0x000000000001fd78 0x000200 0x000200 RW 0x8 NOTE 0x000254 0x0000000000000254 0x0000000000000254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x0009a0 0x00000000000009a0 0x00000000000009a0 0x000044 0x000044 R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x00fd68 0x000000000001fd68 0x000000000001fd68 0x000298 0x000298 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 .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 0xfd78 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [ld-linux-aarch64.so.1] 0x000000000000000c (INIT) 0x6b8 0x000000000000000d (FINI) 0x96c 0x0000000000000019 (INIT_ARRAY) 0x1fd68 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x1fd70 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x298 0x0000000000000005 (STRTAB) 0x3f0 0x0000000000000006 (SYMTAB) 0x2b8 0x000000000000000a (STRSZ) 220 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x1ff78 0x0000000000000002 (PLTRELSZ) 168 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x610 0x0000000000000007 (RELA) 0x538 0x0000000000000008 (RELASZ) 216 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000000000001e (FLAGS) BIND_NOW 0x000000006ffffffb (FLAGS_1) Flags: NOW PIE 0x000000006ffffffe (VERNEED) 0x4e8 0x000000006fffffff (VERNEEDNUM) 2 0x000000006ffffff0 (VERSYM) 0x4cc 0x000000006ffffff9 (RELACOUNT) 4 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x538 contains 9 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000001fd68 0000000000000403 R_AARCH64_RELATIVE 8d0 000000000001fd70 0000000000000403 R_AARCH64_RELATIVE 880 000000000001fff0 0000000000000403 R_AARCH64_RELATIVE 780 0000000000020008 0000000000000403 R_AARCH64_RELATIVE 20008 000000000001ffd0 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 000000000001ffd8 0000000500000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize@GLIBC_2.17 + 0 000000000001ffe0 0000000900000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 000000000001ffe8 0000000a00000401 R_AARCH64_GLOB_DAT 0000000000000000 __stack_chk_guard@GLIBC_2.17 + 0 000000000001fff8 0000000c00000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x610 contains 7 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000001ff90 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main@GLIBC_2.34 + 0 000000000001ff98 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize@GLIBC_2.17 + 0 000000000001ffa0 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf@GLIBC_2.17 + 0 000000000001ffa8 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk@GLIBC_2.17 + 0 000000000001ffb0 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 __stack_chk_fail@GLIBC_2.17 + 0 000000000001ffb8 0000000900000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 000000000001ffc0 0000000b00000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort@GLIBC_2.17 + 0 Symbol table '.dynsym' contains 13 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000006b8 0 SECTION LOCAL DEFAULT 11 .init 2: 0000000000020000 0 SECTION LOCAL DEFAULT 22 .data 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.34 (2) 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 5: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (3) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (3) 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (3) 8: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.17 (3) 9: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 10: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.17 (4) 11: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (3) 12: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable Symbol table '.symtab' contains 101 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 .interp 2: 0000000000000254 0 SECTION LOCAL DEFAULT 2 .note.gnu.build-id 3: 0000000000000278 0 SECTION LOCAL DEFAULT 3 .note.ABI-tag 4: 0000000000000298 0 SECTION LOCAL DEFAULT 4 .gnu.hash 5: 00000000000002b8 0 SECTION LOCAL DEFAULT 5 .dynsym 6: 00000000000003f0 0 SECTION LOCAL DEFAULT 6 .dynstr 7: 00000000000004cc 0 SECTION LOCAL DEFAULT 7 .gnu.version 8: 00000000000004e8 0 SECTION LOCAL DEFAULT 8 .gnu.version_r 9: 0000000000000538 0 SECTION LOCAL DEFAULT 9 .rela.dyn 10: 0000000000000610 0 SECTION LOCAL DEFAULT 10 .rela.plt 11: 00000000000006b8 0 SECTION LOCAL DEFAULT 11 .init 12: 00000000000006d0 0 SECTION LOCAL DEFAULT 12 .plt 13: 0000000000000780 0 SECTION LOCAL DEFAULT 13 .text 14: 000000000000096c 0 SECTION LOCAL DEFAULT 14 .fini 15: 0000000000000980 0 SECTION LOCAL DEFAULT 15 .rodata 16: 00000000000009a0 0 SECTION LOCAL DEFAULT 16 .eh_frame_hdr 17: 00000000000009e8 0 SECTION LOCAL DEFAULT 17 .eh_frame 18: 000000000001fd68 0 SECTION LOCAL DEFAULT 18 .init_array 19: 000000000001fd70 0 SECTION LOCAL DEFAULT 19 .fini_array 20: 000000000001fd78 0 SECTION LOCAL DEFAULT 20 .dynamic 21: 000000000001ff78 0 SECTION LOCAL DEFAULT 21 .got 22: 0000000000020000 0 SECTION LOCAL DEFAULT 22 .data 23: 0000000000020010 0 SECTION LOCAL DEFAULT 23 .bss 24: 0000000000000000 0 SECTION LOCAL DEFAULT 24 .comment 25: 0000000000000000 0 SECTION LOCAL DEFAULT 25 .debug_aranges 26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 .debug_info 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 .debug_abbrev 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 .debug_line 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 .debug_str 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 .debug_line_str 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 .debug_loclists 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 .debug_rnglists 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS Scrt1.o 34: 0000000000000278 0 NOTYPE LOCAL DEFAULT 3 $d 35: 0000000000000278 32 OBJECT LOCAL DEFAULT 3 __abi_tag 36: 00000000000007c0 0 NOTYPE LOCAL DEFAULT 13 $x 37: 00000000000009fc 0 NOTYPE LOCAL DEFAULT 17 $d 38: 0000000000000980 0 NOTYPE LOCAL DEFAULT 15 $d 39: 0000000000000000 0 FILE LOCAL DEFAULT ABS crti.o 40: 00000000000007f4 0 NOTYPE LOCAL DEFAULT 13 $x 41: 00000000000007f4 20 FUNC LOCAL DEFAULT 13 call_weak_fn 42: 00000000000006b8 0 NOTYPE LOCAL DEFAULT 11 $x 43: 000000000000096c 0 NOTYPE LOCAL DEFAULT 14 $x 44: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtn.o 45: 00000000000006c8 0 NOTYPE LOCAL DEFAULT 11 $x 46: 0000000000000978 0 NOTYPE LOCAL DEFAULT 14 $x 47: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 48: 0000000000000988 0 NOTYPE LOCAL DEFAULT 15 $d 49: 00000000000008e0 0 NOTYPE LOCAL DEFAULT 13 $x 50: 0000000000000780 0 NOTYPE LOCAL DEFAULT 13 $x 51: 0000000000000a70 0 NOTYPE LOCAL DEFAULT 17 $d 52: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 53: 0000000000000810 0 NOTYPE LOCAL DEFAULT 13 $x 54: 0000000000000810 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 55: 0000000000000840 0 FUNC LOCAL DEFAULT 13 register_tm_clones 56: 0000000000020008 0 NOTYPE LOCAL DEFAULT 22 $d 57: 0000000000000880 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 58: 0000000000020010 1 OBJECT LOCAL DEFAULT 23 completed.0 59: 000000000001fd70 0 NOTYPE LOCAL DEFAULT 19 $d 60: 000000000001fd70 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 61: 00000000000008d0 0 FUNC LOCAL DEFAULT 13 frame_dummy 62: 000000000001fd68 0 NOTYPE LOCAL DEFAULT 18 $d 63: 000000000001fd68 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 64: 0000000000000a10 0 NOTYPE LOCAL DEFAULT 17 $d 65: 0000000000020010 0 NOTYPE LOCAL DEFAULT 23 $d 66: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 67: 0000000000000abc 0 NOTYPE LOCAL DEFAULT 17 $d 68: 0000000000000abc 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 69: 0000000000000000 0 FILE LOCAL DEFAULT ABS 70: 000000000001fd78 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 71: 00000000000009a0 0 NOTYPE LOCAL DEFAULT 16 __GNU_EH_FRAME_HDR 72: 000000000001ffc8 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 73: 00000000000006d0 0 NOTYPE LOCAL DEFAULT 12 $x 74: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.34 75: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 76: 0000000000020000 0 NOTYPE WEAK DEFAULT 22 data_start 77: 0000000000020010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 78: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 79: 0000000000020018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 80: 0000000000020010 0 NOTYPE GLOBAL DEFAULT 22 _edata 81: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 82: 000000000000096c 0 FUNC GLOBAL HIDDEN 14 _fini 83: 0000000000020018 0 NOTYPE GLOBAL DEFAULT 23 __bss_end__ 84: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 85: 0000000000020000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 86: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.17 87: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 88: 0000000000000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.17 89: 0000000000020008 0 OBJECT GLOBAL HIDDEN 22 __dso_handle 90: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 91: 00000000000008e0 140 FUNC GLOBAL DEFAULT 13 announcement 92: 0000000000000980 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 93: 0000000000020018 0 NOTYPE GLOBAL DEFAULT 23 _end 94: 00000000000007c0 52 FUNC GLOBAL DEFAULT 13 _start 95: 0000000000020018 0 NOTYPE GLOBAL DEFAULT 23 __end__ 96: 0000000000020010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 97: 0000000000000780 32 FUNC GLOBAL DEFAULT 13 main 98: 0000000000020010 0 OBJECT GLOBAL HIDDEN 22 __TMC_END__ 99: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 100: 00000000000006b8 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 (0xaaaabf9008e0) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0xaaaab3b608e0) # Check state of hardening features via check script perl ../build-tree/hardening-check ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Manually check state of hardening features # Test PIE readelf -lW ../build-tree/wrapper-test-linked | grep '^Elf file type is DYN' Elf file type is DYN (Position-Independent Executable file) # Test Stack Protector nm ../build-tree/wrapper-test-linked | egrep '__stack_chk_fail($|@@GLIBC)' make[3]: *** [Makefile.common:90: ../build-tree/wrapper-test-linked] Error 1 make[3]: Leaving directory '/srv/build/hardening-wrapper-2.8+nmu2/tests' make[2]: *** [Makefile:6: check] Error 2 make[2]: Leaving directory '/srv/build/hardening-wrapper-2.8+nmu2/tests' make[1]: *** [Makefile:43: check] Error 2 make[1]: Leaving directory '/srv/build/hardening-wrapper-2.8+nmu2' dh_auto_test: error: make -j1 check returned exit code 2 make: *** [debian/rules:10: build-arch] Error 255 dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit status 2 Command `dpkg-buildpackage --changes-option=-DDistribution=landing -B -mPackage Hardening -ePackage Hardening ` failed. Command debspawn build --no-buildlog --arch=arm64 --results-dir=/var/lib/lkspark/workspaces/349426b8-7f96-438d-b1c1-51a685f297a8 --only=arch --maintainer=Package Hardening landing hardening-wrapper_2.8+nmu2.dsc failed with error code 2