RUN: /usr/share/launchpad-buildd/slavebin/slave-prep ['slave-prep'] Forking launchpad-buildd slave process... Kernel version: Linux birch 3.8.0 #1 SMP Tue Oct 8 01:20:46 ICT 2013 aarch64 Buildd toolchain package versions: launchpad-buildd_119~APM.12.04.2 python-lpbuildd_119~APM.12.04.2. Syncing the system clock with the buildd NTP service... 18 Dec 11:42:46 ntpdate[5256]: adjust time server 10.211.37.1 offset -0.128174 sec RUN: /usr/share/launchpad-buildd/slavebin/unpack-chroot ['unpack-chroot', 'PACKAGEBUILD-5361524', '/home/buildd/filecache-default/a24bd41060605d4f5aef5746aacf39703b0275a9'] Unpacking chroot for build PACKAGEBUILD-5361524 RUN: /usr/share/launchpad-buildd/slavebin/mount-chroot ['mount-chroot', 'PACKAGEBUILD-5361524'] Mounting chroot for build PACKAGEBUILD-5361524 RUN: /usr/share/launchpad-buildd/slavebin/override-sources-list ['override-sources-list', 'PACKAGEBUILD-5361524', 'deb http://ftpmaster.internal/ubuntu trusty main', 'deb http://ftpmaster.internal/ubuntu trusty-security main', 'deb http://ftpmaster.internal/ubuntu trusty-updates main', 'deb http://ftpmaster.internal/ubuntu trusty-proposed main'] Overriding sources.list in build-PACKAGEBUILD-5361524 RUN: /usr/share/launchpad-buildd/slavebin/update-debian-chroot ['update-debian-chroot', 'PACKAGEBUILD-5361524', 'arm64'] Updating debian chroot for build PACKAGEBUILD-5361524 Ign http://ftpmaster.internal trusty InRelease Ign http://archive-team.internal trusty InRelease Ign http://ftpmaster.internal trusty-security InRelease Ign http://archive-team.internal trusty Release.gpg Ign http://ftpmaster.internal trusty-updates InRelease Hit http://archive-team.internal trusty Release Ign http://ftpmaster.internal trusty-proposed InRelease Ign http://archive-team.internal trusty/main arm64 Packages/DiffIndex Get:1 http://ftpmaster.internal trusty Release.gpg [933 B] Get:2 http://ftpmaster.internal trusty-security Release.gpg [933 B] Get:3 http://ftpmaster.internal trusty-updates Release.gpg [933 B] Get:4 http://ftpmaster.internal trusty-proposed Release.gpg [933 B] Get:5 http://ftpmaster.internal trusty Release [58.5 kB] Ign http://archive-team.internal trusty/main Translation-en Get:6 http://ftpmaster.internal trusty-security Release [58.5 kB] Hit http://archive-team.internal trusty/main arm64 Packages Get:7 http://ftpmaster.internal trusty-updates Release [58.5 kB] Get:8 http://ftpmaster.internal trusty-proposed Release [58.5 kB] Get:9 http://ftpmaster.internal trusty/main arm64 Packages [1167 kB] Get:10 http://ftpmaster.internal trusty/main Translation-en [730 kB] Get:11 http://ftpmaster.internal trusty-security/main arm64 Packages [14 B] Get:12 http://ftpmaster.internal trusty-security/main Translation-en [14 B] Get:13 http://ftpmaster.internal trusty-updates/main arm64 Packages [14 B] Get:14 http://ftpmaster.internal trusty-updates/main Translation-en [14 B] Get:15 http://ftpmaster.internal trusty-proposed/main arm64 Packages [20.4 kB] Get:16 http://ftpmaster.internal trusty-proposed/main Translation-en [19.0 kB] Fetched 2174 kB in 5s (425 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: apt apt-transport-https binutils bsdutils build-essential cpp cpp-4.8 e2fslibs e2fsprogs fakeroot g++ g++-4.8 gcc gcc-4.8 gcc-4.8-base gnupg gpgv hostname klibc-utils libapt-pkg4.12 libatomic1 libblkid1 libc-bin libc-dev-bin libc6 libc6-dev libcomerr2 libdb5.3 libfakeroot libgcc-4.8-dev libgcc1 libgcrypt11 libgmp10 libgomp1 libklibc liblockfile-bin liblockfile1 libmount1 libplymouth2 libsqlite3-0 libss2 libstdc++-4.8-dev libstdc++6 libustr-1.0-1 libuuid1 linux-libc-dev mount multiarch-support perl perl-base perl-modules plymouth sed tar util-linux 55 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 34.5 MB of archives. After this operation, 1999 kB of additional disk space will be used. Get:1 http://ftpmaster.internal/ubuntu/ trusty/main libc-dev-bin arm64 2.18-0ubuntu1 [60.3 kB] Get:2 http://ftpmaster.internal/ubuntu/ trusty/main libc6-dev arm64 2.18-0ubuntu1 [1672 kB] Get:3 http://ftpmaster.internal/ubuntu/ trusty/main libc6 arm64 2.18-0ubuntu1 [4060 kB] Get:4 http://ftpmaster.internal/ubuntu/ trusty/main libc-bin arm64 2.18-0ubuntu1 [1048 kB] Get:5 http://ftpmaster.internal/ubuntu/ trusty/main linux-libc-dev arm64 3.12.0-7.15 [702 kB] Get:6 http://ftpmaster.internal/ubuntu/ trusty/main libgomp1 arm64 4.8.2-10ubuntu1 [19.0 kB] Get:7 http://ftpmaster.internal/ubuntu/ trusty/main gcc-4.8-base arm64 4.8.2-10ubuntu1 [14.8 kB] Get:8 http://ftpmaster.internal/ubuntu/ trusty/main libgcc1 arm64 1:4.8.2-10ubuntu1 [29.3 kB] Get:9 http://ftpmaster.internal/ubuntu/ trusty/main libatomic1 arm64 4.8.2-10ubuntu1 [6088 B] Get:10 http://ftpmaster.internal/ubuntu/ trusty/main cpp-4.8 arm64 4.8.2-10ubuntu1 [3526 kB] Get:11 http://ftpmaster.internal/ubuntu/ trusty/main libstdc++-4.8-dev arm64 4.8.2-10ubuntu1 [1050 kB] Get:12 http://ftpmaster.internal/ubuntu/ trusty/main g++-4.8 arm64 4.8.2-10ubuntu1 [5344 kB] Get:13 http://ftpmaster.internal/ubuntu/ trusty/main gcc-4.8 arm64 4.8.2-10ubuntu1 [3924 kB] Get:14 http://ftpmaster.internal/ubuntu/ trusty/main libgcc-4.8-dev arm64 4.8.2-10ubuntu1 [131 kB] Get:15 http://ftpmaster.internal/ubuntu/ trusty/main libstdc++6 arm64 4.8.2-10ubuntu1 [210 kB] Get:16 http://ftpmaster.internal/ubuntu/ trusty/main libgmp10 arm64 2:5.1.2+dfsg-3ubuntu3 [197 kB] Get:17 http://ftpmaster.internal/ubuntu/ trusty/main binutils arm64 2.24-2ubuntu2 [1029 kB] Get:18 http://ftpmaster.internal/ubuntu/ trusty/main e2fslibs arm64 1.42.8-1ubuntu3 [158 kB] Get:19 http://ftpmaster.internal/ubuntu/ trusty/main e2fsprogs arm64 1.42.8-1ubuntu3 [616 kB] Get:20 http://ftpmaster.internal/ubuntu/ trusty/main hostname arm64 3.15ubuntu1 [11.0 kB] Get:21 http://ftpmaster.internal/ubuntu/ trusty/main mount arm64 2.20.1-5.1ubuntu11 [108 kB] Get:22 http://ftpmaster.internal/ubuntu/ trusty/main perl arm64 5.18.1-5 [2211 kB] Get:23 http://ftpmaster.internal/ubuntu/ trusty/main perl-base arm64 5.18.1-5 [1010 kB] Get:24 http://ftpmaster.internal/ubuntu/ trusty/main perl-modules all 5.18.1-5 [2680 kB] Get:25 http://ftpmaster.internal/ubuntu/ trusty/main libdb5.3 arm64 5.3.28-3ubuntu1 [536 kB] Get:26 http://ftpmaster.internal/ubuntu/ trusty/main sed arm64 4.2.2-2ubuntu2 [134 kB] Get:27 http://ftpmaster.internal/ubuntu/ trusty/main tar arm64 1.27-4 [169 kB] Get:28 http://ftpmaster.internal/ubuntu/ trusty/main util-linux arm64 2.20.1-5.1ubuntu11 [423 kB] Get:29 http://ftpmaster.internal/ubuntu/ trusty/main libapt-pkg4.12 arm64 0.9.14.1ubuntu1 [574 kB] Get:30 http://ftpmaster.internal/ubuntu/ trusty/main gpgv arm64 1.4.15-1.1ubuntu2 [133 kB] Get:31 http://ftpmaster.internal/ubuntu/ trusty/main gnupg arm64 1.4.15-1.1ubuntu2 [545 kB] Get:32 http://ftpmaster.internal/ubuntu/ trusty/main apt arm64 0.9.14.1ubuntu1 [942 kB] Get:33 http://ftpmaster.internal/ubuntu/ trusty/main bsdutils arm64 1:2.20.1-5.1ubuntu11 [32.6 kB] Get:34 http://ftpmaster.internal/ubuntu/ trusty/main libuuid1 arm64 2.20.1-5.1ubuntu11 [9652 B] Get:35 http://ftpmaster.internal/ubuntu/ trusty/main libblkid1 arm64 2.20.1-5.1ubuntu11 [50.3 kB] Get:36 http://ftpmaster.internal/ubuntu/ trusty/main libcomerr2 arm64 1.42.8-1ubuntu3 [60.5 kB] Get:37 http://ftpmaster.internal/ubuntu/ trusty/main libmount1 arm64 2.20.1-5.1ubuntu11 [46.3 kB] Get:38 http://ftpmaster.internal/ubuntu/ trusty/main libss2 arm64 1.42.8-1ubuntu3 [64.0 kB] Get:39 http://ftpmaster.internal/ubuntu/ trusty/main libustr-1.0-1 arm64 1.0.4-3ubuntu2 [50.4 kB] Get:40 http://ftpmaster.internal/ubuntu/ trusty-proposed/main libgcrypt11 arm64 1.5.3-2ubuntu4 [217 kB] Get:41 http://ftpmaster.internal/ubuntu/ trusty/main liblockfile-bin arm64 1.09-6ubuntu1 [10.2 kB] Get:42 http://ftpmaster.internal/ubuntu/ trusty/main liblockfile1 arm64 1.09-6ubuntu1 [7158 B] Get:43 http://ftpmaster.internal/ubuntu/ trusty/main libsqlite3-0 arm64 3.8.1-1ubuntu3 [278 kB] Get:44 http://ftpmaster.internal/ubuntu/ trusty/main plymouth arm64 0.8.8-0ubuntu12 [81.7 kB] Get:45 http://ftpmaster.internal/ubuntu/ trusty/main libplymouth2 arm64 0.8.8-0ubuntu12 [61.3 kB] Get:46 http://ftpmaster.internal/ubuntu/ trusty/main multiarch-support arm64 2.18-0ubuntu1 [4486 B] Get:47 http://ftpmaster.internal/ubuntu/ trusty/main klibc-utils arm64 2.0.2-1ubuntu2 [103 kB] Get:48 http://ftpmaster.internal/ubuntu/ trusty/main libklibc arm64 2.0.2-1ubuntu2 [39.5 kB] Get:49 http://ftpmaster.internal/ubuntu/ trusty/main apt-transport-https arm64 0.9.14.1ubuntu1 [24.4 kB] Get:50 http://ftpmaster.internal/ubuntu/ trusty/main cpp arm64 4:4.8.2-1ubuntu2 [27.7 kB] Get:51 http://ftpmaster.internal/ubuntu/ trusty/main gcc arm64 4:4.8.2-1ubuntu2 [4998 B] Get:52 http://ftpmaster.internal/ubuntu/ trusty/main g++ arm64 4:4.8.2-1ubuntu2 [1482 B] Get:53 http://ftpmaster.internal/ubuntu/ trusty-proposed/main build-essential arm64 11.6ubuntu6 [4828 B] Get:54 http://ftpmaster.internal/ubuntu/ trusty/main libfakeroot arm64 1.20-3ubuntu1 [20.6 kB] Get:55 http://ftpmaster.internal/ubuntu/ trusty/main fakeroot arm64 1.20-3ubuntu1 [52.8 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 34.5 MB in 34s (1015 kB/s) (Reading database ... 11898 files and directories currently installed.) Preparing to replace libc-dev-bin 2.17-93ubuntu4 (using .../libc-dev-bin_2.18-0ubuntu1_arm64.deb) ... Unpacking replacement libc-dev-bin ... Preparing to replace libc6-dev:arm64 2.17-93ubuntu4 (using .../libc6-dev_2.18-0ubuntu1_arm64.deb) ... Unpacking replacement libc6-dev:arm64 ... Preparing to replace libc6:arm64 2.17-93ubuntu4 (using .../libc6_2.18-0ubuntu1_arm64.deb) ... Checking for services that may need to be restarted... Checking init scripts... Checking for services that may need to be restarted... Checking init scripts... Nothing to restart. Unpacking replacement libc6:arm64 ... Preparing to replace libgcc1:arm64 1:4.8.2-1ubuntu2 (using .../libgcc1_1%3a4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement libgcc1:arm64 ... Preparing to replace gcc-4.8-base:arm64 4.8.2-1ubuntu2 (using .../gcc-4.8-base_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement gcc-4.8-base:arm64 ... Setting up gcc-4.8-base:arm64 (4.8.2-10ubuntu1) ... Setting up libc6:arm64 (2.18-0ubuntu1) ... Checking for services that may need to be restarted... Checking init scripts... Nothing to restart. Setting up libgcc1:arm64 (1:4.8.2-10ubuntu1) ... Processing triggers for libc-bin ... (Reading database ... 11900 files and directories currently installed.) Preparing to replace libc-bin 2.17-93ubuntu4 (using .../libc-bin_2.18-0ubuntu1_arm64.deb) ... Unpacking replacement libc-bin ... Setting up libc-bin (2.18-0ubuntu1) ... (Reading database ... 11900 files and directories currently installed.) Preparing to replace linux-libc-dev:arm64 3.12.0-5.13 (using .../linux-libc-dev_3.12.0-7.15_arm64.deb) ... Unpacking replacement linux-libc-dev:arm64 ... Preparing to replace libgomp1:arm64 4.8.2-1ubuntu2 (using .../libgomp1_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement libgomp1:arm64 ... Preparing to replace libatomic1:arm64 4.8.2-1ubuntu2 (using .../libatomic1_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement libatomic1:arm64 ... Preparing to replace cpp-4.8 4.8.2-1ubuntu2 (using .../cpp-4.8_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement cpp-4.8 ... Preparing to replace libstdc++-4.8-dev:arm64 4.8.2-1ubuntu2 (using .../libstdc++-4.8-dev_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement libstdc++-4.8-dev:arm64 ... Preparing to replace g++-4.8 4.8.2-1ubuntu2 (using .../g++-4.8_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement g++-4.8 ... Preparing to replace gcc-4.8 4.8.2-1ubuntu2 (using .../gcc-4.8_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement gcc-4.8 ... Preparing to replace libgcc-4.8-dev:arm64 4.8.2-1ubuntu2 (using .../libgcc-4.8-dev_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement libgcc-4.8-dev:arm64 ... Preparing to replace libstdc++6:arm64 4.8.2-1ubuntu2 (using .../libstdc++6_4.8.2-10ubuntu1_arm64.deb) ... Unpacking replacement libstdc++6:arm64 ... Setting up libstdc++6:arm64 (4.8.2-10ubuntu1) ... Processing triggers for libc-bin ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace libgmp10:arm64 2:5.1.2+dfsg-3ubuntu2 (using .../libgmp10_2%3a5.1.2+dfsg-3ubuntu3_arm64.deb) ... Unpacking replacement libgmp10:arm64 ... Preparing to replace binutils 2.24-1ubuntu2 (using .../binutils_2.24-2ubuntu2_arm64.deb) ... Unpacking replacement binutils ... Preparing to replace e2fslibs:arm64 1.42.8-1ubuntu1 (using .../e2fslibs_1.42.8-1ubuntu3_arm64.deb) ... Unpacking replacement e2fslibs:arm64 ... Setting up e2fslibs:arm64 (1.42.8-1ubuntu3) ... Processing triggers for libc-bin ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace e2fsprogs 1.42.8-1ubuntu1 (using .../e2fsprogs_1.42.8-1ubuntu3_arm64.deb) ... Unpacking replacement e2fsprogs ... Setting up e2fsprogs (1.42.8-1ubuntu3) ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace hostname 3.13ubuntu1 (using .../hostname_3.15ubuntu1_arm64.deb) ... Unpacking replacement hostname ... Setting up hostname (3.15ubuntu1) ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace mount 2.20.1-5.1ubuntu10 (using .../mount_2.20.1-5.1ubuntu11_arm64.deb) ... Unpacking replacement mount ... Setting up mount (2.20.1-5.1ubuntu11) ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace perl 5.18.1-4build1 (using .../perl_5.18.1-5_arm64.deb) ... Unpacking replacement perl ... Preparing to replace perl-base 5.18.1-4build1 (using .../perl-base_5.18.1-5_arm64.deb) ... Unpacking replacement perl-base ... Setting up perl-base (5.18.1-5) ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace perl-modules 5.18.1-4build1 (using .../perl-modules_5.18.1-5_all.deb) ... Unpacking replacement perl-modules ... Preparing to replace libdb5.3:arm64 5.3.28-3 (using .../libdb5.3_5.3.28-3ubuntu1_arm64.deb) ... Unpacking replacement libdb5.3:arm64 ... Setting up libdb5.3:arm64 (5.3.28-3ubuntu1) ... Processing triggers for libc-bin ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace sed 4.2.2-2ubuntu1 (using .../sed_4.2.2-2ubuntu2_arm64.deb) ... Unpacking replacement sed ... Setting up sed (4.2.2-2ubuntu2) ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace tar 1.27-3 (using .../archives/tar_1.27-4_arm64.deb) ... Unpacking replacement tar ... Setting up tar (1.27-4) ... (Reading database ... 11916 files and directories currently installed.) Preparing to replace util-linux 2.20.1-5.1ubuntu10 (using .../util-linux_2.20.1-5.1ubuntu11_arm64.deb) ... Unpacking replacement util-linux ... Setting up util-linux (2.20.1-5.1ubuntu11) ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libapt-pkg4.12:arm64 0.9.13.1~ubuntu1 (using .../libapt-pkg4.12_0.9.14.1ubuntu1_arm64.deb) ... Unpacking replacement libapt-pkg4.12:arm64 ... Setting up libapt-pkg4.12:arm64 (0.9.14.1ubuntu1) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace gpgv 1.4.15-1.1ubuntu1 (using .../gpgv_1.4.15-1.1ubuntu2_arm64.deb) ... Unpacking replacement gpgv ... Setting up gpgv (1.4.15-1.1ubuntu2) ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace gnupg 1.4.15-1.1ubuntu1 (using .../gnupg_1.4.15-1.1ubuntu2_arm64.deb) ... Unpacking replacement gnupg ... Setting up gnupg (1.4.15-1.1ubuntu2) ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace apt 0.9.13.1~ubuntu1 (using .../apt_0.9.14.1ubuntu1_arm64.deb) ... Unpacking replacement apt ... Setting up apt (0.9.14.1ubuntu1) ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace bsdutils 1:2.20.1-5.1ubuntu10 (using .../bsdutils_1%3a2.20.1-5.1ubuntu11_arm64.deb) ... Unpacking replacement bsdutils ... Setting up bsdutils (1:2.20.1-5.1ubuntu11) ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libuuid1:arm64 2.20.1-5.1ubuntu10 (using .../libuuid1_2.20.1-5.1ubuntu11_arm64.deb) ... Unpacking replacement libuuid1:arm64 ... Setting up libuuid1:arm64 (2.20.1-5.1ubuntu11) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libblkid1:arm64 2.20.1-5.1ubuntu10 (using .../libblkid1_2.20.1-5.1ubuntu11_arm64.deb) ... Unpacking replacement libblkid1:arm64 ... Setting up libblkid1:arm64 (2.20.1-5.1ubuntu11) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libcomerr2:arm64 1.42.8-1ubuntu1 (using .../libcomerr2_1.42.8-1ubuntu3_arm64.deb) ... Unpacking replacement libcomerr2:arm64 ... Setting up libcomerr2:arm64 (1.42.8-1ubuntu3) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libmount1:arm64 2.20.1-5.1ubuntu10 (using .../libmount1_2.20.1-5.1ubuntu11_arm64.deb) ... Unpacking replacement libmount1:arm64 ... Setting up libmount1:arm64 (2.20.1-5.1ubuntu11) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libss2:arm64 1.42.8-1ubuntu1 (using .../libss2_1.42.8-1ubuntu3_arm64.deb) ... Unpacking replacement libss2:arm64 ... Setting up libss2:arm64 (1.42.8-1ubuntu3) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libustr-1.0-1:arm64 1.0.4-3ubuntu1 (using .../libustr-1.0-1_1.0.4-3ubuntu2_arm64.deb) ... Unpacking replacement libustr-1.0-1:arm64 ... Setting up libustr-1.0-1:arm64 (1.0.4-3ubuntu2) ... Processing triggers for libc-bin ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace libgcrypt11:arm64 1.5.3-2ubuntu1 (using .../libgcrypt11_1.5.3-2ubuntu4_arm64.deb) ... Unpacking replacement libgcrypt11:arm64 ... Preparing to replace liblockfile-bin 1.09-6 (using .../liblockfile-bin_1.09-6ubuntu1_arm64.deb) ... Unpacking replacement liblockfile-bin ... Preparing to replace liblockfile1:arm64 1.09-6 (using .../liblockfile1_1.09-6ubuntu1_arm64.deb) ... Unpacking replacement liblockfile1:arm64 ... Preparing to replace libsqlite3-0:arm64 3.8.1-1ubuntu1 (using .../libsqlite3-0_3.8.1-1ubuntu3_arm64.deb) ... Unpacking replacement libsqlite3-0:arm64 ... Preparing to replace plymouth 0.8.8-0ubuntu11 (using .../plymouth_0.8.8-0ubuntu12_arm64.deb) ... Unpacking replacement plymouth ... Preparing to replace libplymouth2:arm64 0.8.8-0ubuntu11 (using .../libplymouth2_0.8.8-0ubuntu12_arm64.deb) ... Unpacking replacement libplymouth2:arm64 ... Preparing to replace multiarch-support 2.17-93ubuntu4 (using .../multiarch-support_2.18-0ubuntu1_arm64.deb) ... Unpacking replacement multiarch-support ... Setting up multiarch-support (2.18-0ubuntu1) ... (Reading database ... 11920 files and directories currently installed.) Preparing to replace klibc-utils 2.0.2-1ubuntu1 (using .../klibc-utils_2.0.2-1ubuntu2_arm64.deb) ... Unpacking replacement klibc-utils ... Preparing to replace libklibc 2.0.2-1ubuntu1 (using .../libklibc_2.0.2-1ubuntu2_arm64.deb) ... Unpacking replacement libklibc ... Preparing to replace apt-transport-https 0.9.13.1~ubuntu1 (using .../apt-transport-https_0.9.14.1ubuntu1_arm64.deb) ... Unpacking replacement apt-transport-https ... Preparing to replace cpp 4:4.8.1-2ubuntu3 (using .../cpp_4%3a4.8.2-1ubuntu2_arm64.deb) ... Unpacking replacement cpp ... Preparing to replace gcc 4:4.8.1-2ubuntu3 (using .../gcc_4%3a4.8.2-1ubuntu2_arm64.deb) ... Removing old gcc doc directory. Unpacking replacement gcc ... Preparing to replace g++ 4:4.8.1-2ubuntu3 (using .../g++_4%3a4.8.2-1ubuntu2_arm64.deb) ... Unpacking replacement g++ ... Preparing to replace build-essential 11.6ubuntu5 (using .../build-essential_11.6ubuntu6_arm64.deb) ... Unpacking replacement build-essential ... Preparing to replace libfakeroot:arm64 1.20-3 (using .../libfakeroot_1.20-3ubuntu1_arm64.deb) ... Unpacking replacement libfakeroot:arm64 ... Preparing to replace fakeroot 1.20-3 (using .../fakeroot_1.20-3ubuntu1_arm64.deb) ... Unpacking replacement fakeroot ... Setting up libc-dev-bin (2.18-0ubuntu1) ... Setting up linux-libc-dev:arm64 (3.12.0-7.15) ... Setting up libc6-dev:arm64 (2.18-0ubuntu1) ... Setting up libgomp1:arm64 (4.8.2-10ubuntu1) ... Setting up libatomic1:arm64 (4.8.2-10ubuntu1) ... Setting up libgmp10:arm64 (2:5.1.2+dfsg-3ubuntu3) ... Setting up cpp-4.8 (4.8.2-10ubuntu1) ... Setting up libgcc-4.8-dev:arm64 (4.8.2-10ubuntu1) ... Setting up libstdc++-4.8-dev:arm64 (4.8.2-10ubuntu1) ... Setting up binutils (2.24-2ubuntu2) ... Setting up gcc-4.8 (4.8.2-10ubuntu1) ... Setting up g++-4.8 (4.8.2-10ubuntu1) ... Setting up libgcrypt11:arm64 (1.5.3-2ubuntu4) ... Setting up liblockfile-bin (1.09-6ubuntu1) ... Setting up liblockfile1:arm64 (1.09-6ubuntu1) ... Setting up libsqlite3-0:arm64 (3.8.1-1ubuntu3) ... Setting up libplymouth2:arm64 (0.8.8-0ubuntu12) ... Setting up plymouth (0.8.8-0ubuntu12) ... update-initramfs: deferring update (trigger activated) Setting up libklibc (2.0.2-1ubuntu2) ... Setting up klibc-utils (2.0.2-1ubuntu2) ... Setting up apt-transport-https (0.9.14.1ubuntu1) ... Setting up cpp (4:4.8.2-1ubuntu2) ... Setting up gcc (4:4.8.2-1ubuntu2) ... Setting up g++ (4:4.8.2-1ubuntu2) ... Setting up build-essential (11.6ubuntu6) ... Setting up libfakeroot:arm64 (1.20-3ubuntu1) ... Setting up fakeroot (1.20-3ubuntu1) ... Setting up perl-modules (5.18.1-5) ... Setting up perl (5.18.1-5) ... Processing triggers for libc-bin ... Processing triggers for initramfs-tools ... RUN: /usr/share/launchpad-buildd/slavebin/sbuild-package ['sbuild-package', 'PACKAGEBUILD-5361524', 'arm64', 'trusty-proposed', '--nolog', '--batch', '--archive=ubuntu', '--dist=trusty-proposed', '--purpose=PRIMARY', '--architecture=arm64', '--comp=main', 'hardening-wrapper_2.5ubuntu1.dsc'] Initiating build PACKAGEBUILD-5361524 with 8 jobs across 8 processor cores. Kernel reported to sbuild: 3.8.0 #1 SMP Tue Oct 8 01:20:46 ICT 2013 aarch64 Automatic build of hardening-wrapper_2.5ubuntu1 on birch by sbuild/arm64 1.170.5 Build started at 20131218-1143 ****************************************************************************** hardening-wrapper_2.5ubuntu1.dsc exists in cwd ** Using build dependencies supplied by package: Build-Depends: debhelper (>= 9), perl-base (>= 5.10) Checking for already installed source dependencies... debhelper: missing perl-base: already installed (5.18.1-5 >= 5.10 is satisfied) Checking for source dependency conflicts... /usr/bin/sudo /usr/bin/apt-get --purge $CHROOT_OPTIONS -q -y install debhelper Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: apparmor-easyprof bsdmainutils dh-apparmor dh-python file gettext gettext-base groff-base intltool-debian libasprintf0c2 libcroco3 libexpat1 libglib2.0-0 libmagic1 libpipeline1 libpython3-stdlib libpython3.3-minimal libpython3.3-stdlib libssl1.0.0 libunistring0 libxml2 man-db mime-support po-debconf python3 python3-minimal python3.3 python3.3-minimal Suggested packages: wamerican wordlist whois vacation dh-make gettext-doc groff less www-browser libmail-box-perl python3-doc python3-tk python3.3-doc binfmt-support Recommended packages: curl wget lynx-cur libasprintf-dev libgettextpo-dev libglib2.0-data shared-mime-info xml-core libmail-sendmail-perl The following NEW packages will be installed: apparmor-easyprof bsdmainutils debhelper dh-apparmor dh-python file gettext gettext-base groff-base intltool-debian libasprintf0c2 libcroco3 libexpat1 libglib2.0-0 libmagic1 libpipeline1 libpython3-stdlib libpython3.3-minimal libpython3.3-stdlib libssl1.0.0 libunistring0 libxml2 man-db mime-support po-debconf python3 python3-minimal python3.3 python3.3-minimal 0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded. Need to get 9443 kB of archives. After this operation, 41.4 MB of additional disk space will be used. Get:1 http://ftpmaster.internal/ubuntu/ trusty/main libexpat1 arm64 2.1.0-4ubuntu1 [56.6 kB] Get:2 http://ftpmaster.internal/ubuntu/ trusty/main libmagic1 arm64 1:5.14-2ubuntu1 [176 kB] Get:3 http://ftpmaster.internal/ubuntu/ trusty/main libssl1.0.0 arm64 1.0.1e-4ubuntu3 [649 kB] Get:4 http://ftpmaster.internal/ubuntu/ trusty/main libpython3.3-minimal arm64 3.3.3-4 [390 kB] Get:5 http://ftpmaster.internal/ubuntu/ trusty/main mime-support all 3.54ubuntu1 [31.7 kB] Get:6 http://ftpmaster.internal/ubuntu/ trusty/main libpython3.3-stdlib arm64 3.3.3-4 [1940 kB] Get:7 http://ftpmaster.internal/ubuntu/ trusty/main python3.3-minimal arm64 3.3.3-4 [1057 kB] Get:8 http://ftpmaster.internal/ubuntu/ trusty/main libasprintf0c2 arm64 0.18.3.1-1ubuntu2 [6604 B] Get:9 http://ftpmaster.internal/ubuntu/ trusty/main libglib2.0-0 arm64 2.39.1-0ubuntu3 [847 kB] Get:10 http://ftpmaster.internal/ubuntu/ trusty/main libpipeline1 arm64 1.2.5-1 [20.4 kB] Get:11 http://ftpmaster.internal/ubuntu/ trusty/main libxml2 arm64 2.9.1+dfsg1-3ubuntu3 [458 kB] Get:12 http://ftpmaster.internal/ubuntu/ trusty/main groff-base arm64 1.22.2-3 [688 kB] Get:13 http://ftpmaster.internal/ubuntu/ trusty/main bsdmainutils arm64 9.0.5ubuntu1 [199 kB] Get:14 http://ftpmaster.internal/ubuntu/ trusty/main man-db arm64 2.6.5-2 [678 kB] Get:15 http://ftpmaster.internal/ubuntu/ trusty/main libcroco3 arm64 0.6.8-2ubuntu1 [65.1 kB] Get:16 http://ftpmaster.internal/ubuntu/ trusty/main libunistring0 arm64 0.9.3-5ubuntu2 [250 kB] Get:17 http://ftpmaster.internal/ubuntu/ trusty/main python3.3 arm64 3.3.3-4 [129 kB] Get:18 http://ftpmaster.internal/ubuntu/ trusty/main python3-minimal arm64 3.3.2-17 [27.0 kB] Get:19 http://ftpmaster.internal/ubuntu/ trusty/main libpython3-stdlib arm64 3.3.2-17 [7866 B] Get:20 http://ftpmaster.internal/ubuntu/ trusty/main python3 arm64 3.3.2-17 [9190 B] Get:21 http://ftpmaster.internal/ubuntu/ trusty-proposed/main dh-python all 1.20131021-1ubuntu3 [50.3 kB] Get:22 http://ftpmaster.internal/ubuntu/ trusty/main file arm64 1:5.14-2ubuntu1 [18.7 kB] Get:23 http://ftpmaster.internal/ubuntu/ trusty/main gettext-base arm64 0.18.3.1-1ubuntu2 [45.7 kB] Get:24 http://ftpmaster.internal/ubuntu/ trusty/main gettext arm64 0.18.3.1-1ubuntu2 [769 kB] Get:25 http://ftpmaster.internal/ubuntu/ trusty/main intltool-debian all 0.35.0+20060710.1 [31.6 kB] Get:26 http://ftpmaster.internal/ubuntu/ trusty/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB] Get:27 http://ftpmaster.internal/ubuntu/ trusty/main apparmor-easyprof all 2.8.0-0ubuntu35 [20.1 kB] Get:28 http://ftpmaster.internal/ubuntu/ trusty/main dh-apparmor all 2.8.0-0ubuntu35 [7300 B] Get:29 http://ftpmaster.internal/ubuntu/ trusty/main debhelper all 9.20131127ubuntu1 [604 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 9443 kB in 8s (1057 kB/s) Selecting previously unselected package libexpat1:arm64. (Reading database ... 11920 files and directories currently installed.) Unpacking libexpat1:arm64 (from .../libexpat1_2.1.0-4ubuntu1_arm64.deb) ... Selecting previously unselected package libmagic1:arm64. Unpacking libmagic1:arm64 (from .../libmagic1_1%3a5.14-2ubuntu1_arm64.deb) ... Selecting previously unselected package libssl1.0.0:arm64. Unpacking libssl1.0.0:arm64 (from .../libssl1.0.0_1.0.1e-4ubuntu3_arm64.deb) ... Selecting previously unselected package libpython3.3-minimal:arm64. Unpacking libpython3.3-minimal:arm64 (from .../libpython3.3-minimal_3.3.3-4_arm64.deb) ... Selecting previously unselected package mime-support. Unpacking mime-support (from .../mime-support_3.54ubuntu1_all.deb) ... Selecting previously unselected package libpython3.3-stdlib:arm64. Unpacking libpython3.3-stdlib:arm64 (from .../libpython3.3-stdlib_3.3.3-4_arm64.deb) ... Selecting previously unselected package python3.3-minimal. Unpacking python3.3-minimal (from .../python3.3-minimal_3.3.3-4_arm64.deb) ... Selecting previously unselected package libasprintf0c2:arm64. Unpacking libasprintf0c2:arm64 (from .../libasprintf0c2_0.18.3.1-1ubuntu2_arm64.deb) ... Selecting previously unselected package libglib2.0-0:arm64. Unpacking libglib2.0-0:arm64 (from .../libglib2.0-0_2.39.1-0ubuntu3_arm64.deb) ... Selecting previously unselected package libpipeline1:arm64. Unpacking libpipeline1:arm64 (from .../libpipeline1_1.2.5-1_arm64.deb) ... Selecting previously unselected package libxml2:arm64. Unpacking libxml2:arm64 (from .../libxml2_2.9.1+dfsg1-3ubuntu3_arm64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.22.2-3_arm64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_9.0.5ubuntu1_arm64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.5-2_arm64.deb) ... Selecting previously unselected package libcroco3:arm64. Unpacking libcroco3:arm64 (from .../libcroco3_0.6.8-2ubuntu1_arm64.deb) ... Selecting previously unselected package libunistring0:arm64. Unpacking libunistring0:arm64 (from .../libunistring0_0.9.3-5ubuntu2_arm64.deb) ... Selecting previously unselected package python3.3. Unpacking python3.3 (from .../python3.3_3.3.3-4_arm64.deb) ... Selecting previously unselected package python3-minimal. Unpacking python3-minimal (from .../python3-minimal_3.3.2-17_arm64.deb) ... Selecting previously unselected package libpython3-stdlib:arm64. Unpacking libpython3-stdlib:arm64 (from .../libpython3-stdlib_3.3.2-17_arm64.deb) ... Selecting previously unselected package python3. Unpacking python3 (from .../python3_3.3.2-17_arm64.deb) ... Selecting previously unselected package dh-python. Unpacking dh-python (from .../dh-python_1.20131021-1ubuntu3_all.deb) ... Selecting previously unselected package file. Unpacking file (from .../file_1%3a5.14-2ubuntu1_arm64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.3.1-1ubuntu2_arm64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.3.1-1ubuntu2_arm64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2ubuntu1_all.deb) ... Selecting previously unselected package apparmor-easyprof. Unpacking apparmor-easyprof (from .../apparmor-easyprof_2.8.0-0ubuntu35_all.deb) ... Selecting previously unselected package dh-apparmor. Unpacking dh-apparmor (from .../dh-apparmor_2.8.0-0ubuntu35_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_9.20131127ubuntu1_all.deb) ... Setting up libexpat1:arm64 (2.1.0-4ubuntu1) ... Setting up libmagic1:arm64 (1:5.14-2ubuntu1) ... Setting up libssl1.0.0:arm64 (1.0.1e-4ubuntu3) ... Setting up libpython3.3-minimal:arm64 (3.3.3-4) ... Setting up mime-support (3.54ubuntu1) ... update-alternatives: using /usr/bin/see to provide /usr/bin/view (view) in auto mode Setting up libpython3.3-stdlib:arm64 (3.3.3-4) ... Setting up python3.3-minimal (3.3.3-4) ... Setting up libasprintf0c2:arm64 (0.18.3.1-1ubuntu2) ... Setting up libglib2.0-0:arm64 (2.39.1-0ubuntu3) ... No schema files found: doing nothing. Setting up libpipeline1:arm64 (1.2.5-1) ... Setting up libxml2:arm64 (2.9.1+dfsg1-3ubuntu3) ... Setting up groff-base (1.22.2-3) ... Setting up bsdmainutils (9.0.5ubuntu1) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up man-db (2.6.5-2) ... Not building database; man-db/auto-update is not 'true'. Setting up libcroco3:arm64 (0.6.8-2ubuntu1) ... Setting up libunistring0:arm64 (0.9.3-5ubuntu2) ... Setting up python3.3 (3.3.3-4) ... Setting up python3-minimal (3.3.2-17) ... Setting up libpython3-stdlib:arm64 (3.3.2-17) ... Setting up file (1:5.14-2ubuntu1) ... Setting up gettext-base (0.18.3.1-1ubuntu2) ... Setting up gettext (0.18.3.1-1ubuntu2) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2ubuntu1) ... Setting up dh-python (1.20131021-1ubuntu3) ... Setting up python3 (3.3.2-17) ... running python rtupdate hooks for python3.3... running python post-rtupdate hooks for python3.3... Setting up apparmor-easyprof (2.8.0-0ubuntu35) ... Setting up dh-apparmor (2.8.0-0ubuntu35) ... Setting up debhelper (9.20131127ubuntu1) ... Processing triggers for libc-bin ... Checking correctness of source dependencies... Toolchain package versions: libc6-dev_2.18-0ubuntu1 make_3.81-8.2ubuntu3 dpkg-dev_1.17.1ubuntu1 gcc-4.8_4.8.2-10ubuntu1 g++-4.8_4.8.2-10ubuntu1 binutils_2.24-2ubuntu2 libstdc++-4.8-dev_4.8.2-10ubuntu1 libstdc++6_4.8.2-10ubuntu1 ------------------------------------------------------------------------------ dpkg-source: warning: -sn is not a valid option for Dpkg::Source::Package::V3::Native gpgv: Signature made Wed Dec 18 11:41:06 2013 UTC using DSA key ID 0F932C9C gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./hardening-wrapper_2.5ubuntu1.dsc dpkg-source: info: extracting hardening-wrapper in hardening-wrapper-2.5ubuntu1 dpkg-source: info: unpacking hardening-wrapper_2.5ubuntu1.tar.gz dpkg-buildpackage: source package hardening-wrapper dpkg-buildpackage: source version 2.5ubuntu1 dpkg-buildpackage: source distribution trusty dpkg-source --before-build hardening-wrapper-2.5ubuntu1 dpkg-buildpackage: host architecture arm64 /usr/bin/fakeroot debian/rules clean dh clean dh_testdir dh_auto_clean make[1]: Entering directory `/build/buildd/hardening-wrapper-2.5ubuntu1' rm -rf build-tree make[1]: Leaving directory `/build/buildd/hardening-wrapper-2.5ubuntu1' dh_clean debian/rules build-arch dh build-arch dh_testdir -a dh_auto_configure -a dh_auto_build -a make[1]: Entering directory `/build/buildd/hardening-wrapper-2.5ubuntu1' 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'}=0;/;" 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 `/build/buildd/hardening-wrapper-2.5ubuntu1' dh_auto_test -a make[1]: Entering directory `/build/buildd/hardening-wrapper-2.5ubuntu1' make -C tests check make[2]: Entering directory `/build/buildd/hardening-wrapper-2.5ubuntu1/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 (0x4006b0) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x5557d72984) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x558b8dc984) make -f Makefile.wrapper check make[3]: Entering directory `/build/buildd/hardening-wrapper-2.5ubuntu1/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-4.8 -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 0x400480 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x000188 0x000188 R E 0x8 INTERP 0x0001c8 0x00000000004001c8 0x00000000004001c8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x000714 0x000714 R E 0x10000 LOAD 0x000df0 0x0000000000410df0 0x0000000000410df0 0x000248 0x000250 RW 0x10000 DYNAMIC 0x000e08 0x0000000000410e08 0x0000000000410e08 0x0001d0 0x0001d0 RW 0x8 NOTE 0x0001e4 0x00000000004001e4 0x00000000004001e4 0x000044 0x000044 R 0x4 GNU_RELRO 0x000df0 0x0000000000410df0 0x0000000000410df0 0x000210 0x000210 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xe08 contains 24 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x4003f8 0x000000000000000d (FINI) 0x4006e0 0x0000000000000019 (INIT_ARRAY) 0x410df0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x410df8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x400228 0x0000000000000005 (STRTAB) 0x4002f0 0x0000000000000006 (SYMTAB) 0x400260 0x000000000000000a (STRSZ) 70 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x410fe8 0x0000000000000002 (PLTRELSZ) 120 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x400380 0x0000000000000007 (RELA) 0x400368 0x0000000000000008 (RELASZ) 24 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x400348 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x400336 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x368 contains 1 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000410fe0 0000000100000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x380 contains 5 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000411000 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000400430 snprintf + 0 0000000000411008 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000400440 __libc_start_main + 0 0000000000411010 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000411018 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000400460 abort + 0 0000000000411020 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000400470 printf + 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 NOTYPE WEAK DEFAULT UND __gmon_start__ 2: 0000000000400430 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 3: 0000000000400460 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 4: 0000000000400470 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.17 (2) 5: 0000000000400440 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) Symbol table '.symtab' contains 101 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000004001c8 0 SECTION LOCAL DEFAULT 1 2: 00000000004001e4 0 SECTION LOCAL DEFAULT 2 3: 0000000000400204 0 SECTION LOCAL DEFAULT 3 4: 0000000000400228 0 SECTION LOCAL DEFAULT 4 5: 0000000000400260 0 SECTION LOCAL DEFAULT 5 6: 00000000004002f0 0 SECTION LOCAL DEFAULT 6 7: 0000000000400336 0 SECTION LOCAL DEFAULT 7 8: 0000000000400348 0 SECTION LOCAL DEFAULT 8 9: 0000000000400368 0 SECTION LOCAL DEFAULT 9 10: 0000000000400380 0 SECTION LOCAL DEFAULT 10 11: 00000000004003f8 0 SECTION LOCAL DEFAULT 11 12: 0000000000400410 0 SECTION LOCAL DEFAULT 12 13: 0000000000400480 0 SECTION LOCAL DEFAULT 13 14: 00000000004006e0 0 SECTION LOCAL DEFAULT 14 15: 00000000004006f0 0 SECTION LOCAL DEFAULT 15 16: 0000000000400710 0 SECTION LOCAL DEFAULT 16 17: 0000000000410df0 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 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crt1.o 27: 00000000004001e4 0 NOTYPE LOCAL DEFAULT 2 $d 28: 0000000000400480 0 NOTYPE LOCAL DEFAULT 13 $x 29: 00000000004004b0 0 NOTYPE LOCAL DEFAULT 13 $d 30: 00000000004006f0 0 NOTYPE LOCAL DEFAULT 15 $d 31: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o 32: 00000000004004c8 0 NOTYPE LOCAL DEFAULT 13 $x 33: 00000000004004c8 20 FUNC LOCAL DEFAULT 13 call_weak_fn 34: 00000000004003f8 0 NOTYPE LOCAL DEFAULT 11 $x 35: 00000000004006e0 0 NOTYPE LOCAL DEFAULT 14 $x 36: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o 37: 0000000000400404 0 NOTYPE LOCAL DEFAULT 11 $x 38: 00000000004006e8 0 NOTYPE LOCAL DEFAULT 14 $x 39: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 40: 0000000000410e00 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 41: 00000000004004e0 0 NOTYPE LOCAL DEFAULT 13 $x 42: 00000000004004e0 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 43: 0000000000400520 0 NOTYPE LOCAL DEFAULT 13 $d 44: 0000000000400528 0 NOTYPE LOCAL DEFAULT 13 $x 45: 0000000000400528 0 FUNC LOCAL DEFAULT 13 register_tm_clones 46: 0000000000400570 0 NOTYPE LOCAL DEFAULT 13 $d 47: 0000000000411030 0 NOTYPE LOCAL DEFAULT 23 $d 48: 0000000000400578 0 NOTYPE LOCAL DEFAULT 13 $x 49: 0000000000400578 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 50: 0000000000411038 1 OBJECT LOCAL DEFAULT 24 completed.7416 51: 0000000000410df8 0 NOTYPE LOCAL DEFAULT 18 $d 52: 0000000000410df8 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fini_array_entry 53: 00000000004005a8 0 FUNC LOCAL DEFAULT 13 frame_dummy 54: 00000000004005d8 0 NOTYPE LOCAL DEFAULT 13 $d 55: 0000000000410df0 0 NOTYPE LOCAL DEFAULT 17 $d 56: 0000000000410df0 0 OBJECT LOCAL DEFAULT 17 __frame_dummy_init_array_entry 57: 0000000000411038 0 NOTYPE LOCAL DEFAULT 24 $d 58: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 59: 00000000004006f8 0 NOTYPE LOCAL DEFAULT 15 $d 60: 00000000004005e0 0 NOTYPE LOCAL DEFAULT 13 $x 61: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.oS 62: 0000000000400664 0 NOTYPE LOCAL DEFAULT 13 $x 63: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 64: 0000000000400710 0 NOTYPE LOCAL DEFAULT 16 $d 65: 0000000000400710 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 66: 0000000000410e00 0 NOTYPE LOCAL DEFAULT 19 $d 67: 0000000000410e00 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 68: 0000000000000000 0 FILE LOCAL DEFAULT ABS 69: 0000000000410df8 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 70: 0000000000410e08 0 OBJECT LOCAL DEFAULT 20 _DYNAMIC 71: 0000000000410df0 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 72: 0000000000410fd8 0 OBJECT LOCAL DEFAULT 21 _GLOBAL_OFFSET_TABLE_ 73: 0000000000400430 0 NOTYPE LOCAL DEFAULT 12 $x 74: 00000000004006dc 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 75: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 76: 0000000000411028 0 NOTYPE WEAK DEFAULT 23 data_start 77: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 78: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 79: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 23 _edata 80: 0000000000400430 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 81: 00000000004006e0 0 FUNC GLOBAL DEFAULT 14 _fini 82: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 83: 0000000000400440 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.17 84: 0000000000411028 0 NOTYPE GLOBAL DEFAULT 23 __data_start 85: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 86: 0000000000411030 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 87: 0000000000400460 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 88: 00000000004005e0 84 FUNC GLOBAL DEFAULT 13 announcement 89: 00000000004006f0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 90: 0000000000400664 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 91: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _end 92: 0000000000400480 0 FUNC GLOBAL DEFAULT 13 _start 93: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 __end__ 94: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 95: 0000000000400634 48 FUNC GLOBAL DEFAULT 13 main 96: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 97: 0000000000411038 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__ 98: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 99: 0000000000400470 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.17 100: 00000000004003f8 0 FUNC GLOBAL DEFAULT 11 _init ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0x4005e0) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-compiled hello.c /usr/bin/gcc-4.8 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-compiled hello.c readelf -ldrsW ../build-tree/wrapper-test-compiled Elf file type is DYN (Shared object file) Entry point 0x890 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000188 0x000188 R E 0x8 INTERP 0x0001c8 0x00000000000001c8 0x00000000000001c8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000aec 0x000aec R E 0x10000 LOAD 0x000db8 0x0000000000010db8 0x0000000000010db8 0x000288 0x000290 RW 0x10000 DYNAMIC 0x000dd0 0x0000000000010dd0 0x0000000000010dd0 0x0001d0 0x0001d0 RW 0x8 NOTE 0x0001e4 0x00000000000001e4 0x00000000000001e4 0x000044 0x000044 R 0x4 GNU_RELRO 0x000db8 0x0000000000010db8 0x0000000000010db8 0x000248 0x000248 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xdd0 contains 25 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x7d8 0x000000000000000d (FINI) 0xab8 0x0000000000000019 (INIT_ARRAY) 0x10db8 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x10dc0 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x228 0x0000000000000005 (STRTAB) 0x4c8 0x0000000000000006 (SYMTAB) 0x288 0x000000000000000a (STRSZ) 290 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x10fe8 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x748 0x0000000000000007 (RELA) 0x640 0x0000000000000008 (RELASZ) 264 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x620 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x5ea 0x000000006ffffff9 (RELACOUNT) 6 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x640 contains 11 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010db8 0000000000000403 R_AARCH64_RELATIVE 9b4 0000000000010dc0 0000000000000403 R_AARCH64_RELATIVE 96c 0000000000010fa8 0000000000000403 R_AARCH64_RELATIVE ab4 0000000000010fc8 0000000000000403 R_AARCH64_RELATIVE a3c 0000000000010fd0 0000000000000403 R_AARCH64_RELATIVE 870 0000000000011038 0000000000000403 R_AARCH64_RELATIVE 11038 0000000000010fb0 0000000300000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 0000000000010fb8 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize + 0 0000000000010fc0 0000000800000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000010fd8 0000000a00000401 R_AARCH64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0 0000000000010fe0 0000000b00000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x748 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000011000 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize + 0 0000000000011008 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf + 0 0000000000011010 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000011018 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk + 0 0000000000011020 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000011028 0000000900000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort + 0 Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 0000000000010dc8 0 SECTION LOCAL DEFAULT 19 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 4: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (2) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (2) 8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 10: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 12: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 13: 0000000000011040 0 NOTYPE GLOBAL DEFAULT 23 _edata 14: 0000000000011030 0 NOTYPE GLOBAL DEFAULT 23 __data_start 15: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 _end 16: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 17: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 0000000000011040 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 20: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 21: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 0000000000011040 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 23: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 __end__ Symbol table '.symtab' contains 106 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 00000000000001e4 0 SECTION LOCAL DEFAULT 2 3: 0000000000000204 0 SECTION LOCAL DEFAULT 3 4: 0000000000000228 0 SECTION LOCAL DEFAULT 4 5: 0000000000000288 0 SECTION LOCAL DEFAULT 5 6: 00000000000004c8 0 SECTION LOCAL DEFAULT 6 7: 00000000000005ea 0 SECTION LOCAL DEFAULT 7 8: 0000000000000620 0 SECTION LOCAL DEFAULT 8 9: 0000000000000640 0 SECTION LOCAL DEFAULT 9 10: 0000000000000748 0 SECTION LOCAL DEFAULT 10 11: 00000000000007d8 0 SECTION LOCAL DEFAULT 11 12: 00000000000007f0 0 SECTION LOCAL DEFAULT 12 13: 0000000000000870 0 SECTION LOCAL DEFAULT 13 14: 0000000000000ab8 0 SECTION LOCAL DEFAULT 14 15: 0000000000000ac8 0 SECTION LOCAL DEFAULT 15 16: 0000000000000ae8 0 SECTION LOCAL DEFAULT 16 17: 0000000000010db8 0 SECTION LOCAL DEFAULT 17 18: 0000000000010dc0 0 SECTION LOCAL DEFAULT 18 19: 0000000000010dc8 0 SECTION LOCAL DEFAULT 19 20: 0000000000010dd0 0 SECTION LOCAL DEFAULT 20 21: 0000000000010fa0 0 SECTION LOCAL DEFAULT 21 22: 0000000000010fe8 0 SECTION LOCAL DEFAULT 22 23: 0000000000011030 0 SECTION LOCAL DEFAULT 23 24: 0000000000011040 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 SECTION LOCAL DEFAULT 33 34: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o 35: 00000000000001e4 0 NOTYPE LOCAL DEFAULT 2 $d 36: 0000000000000890 0 NOTYPE LOCAL DEFAULT 13 $x 37: 0000000000000ac8 0 NOTYPE LOCAL DEFAULT 15 $d 38: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o 39: 00000000000008cc 0 NOTYPE LOCAL DEFAULT 13 $x 40: 00000000000008cc 20 FUNC LOCAL DEFAULT 13 call_weak_fn 41: 00000000000007d8 0 NOTYPE LOCAL DEFAULT 11 $x 42: 0000000000000ab8 0 NOTYPE LOCAL DEFAULT 14 $x 43: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o 44: 00000000000007e4 0 NOTYPE LOCAL DEFAULT 11 $x 45: 0000000000000ac0 0 NOTYPE LOCAL DEFAULT 14 $x 46: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 47: 00000000000009e4 0 NOTYPE LOCAL DEFAULT 13 $x 48: 0000000000000870 0 NOTYPE LOCAL DEFAULT 13 $x 49: 0000000000000ad0 0 NOTYPE LOCAL DEFAULT 15 $d 50: 0000000000000010 0 NOTYPE LOCAL DEFAULT 30 $d 51: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 52: 0000000000010dc8 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 53: 00000000000008e0 0 NOTYPE LOCAL DEFAULT 13 $x 54: 00000000000008e0 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 55: 0000000000000924 0 FUNC LOCAL DEFAULT 13 register_tm_clones 56: 0000000000011038 0 NOTYPE LOCAL DEFAULT 23 $d 57: 000000000000096c 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 58: 0000000000011040 1 OBJECT LOCAL DEFAULT 24 completed.7416 59: 0000000000010dc0 0 NOTYPE LOCAL DEFAULT 18 $d 60: 0000000000010dc0 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fini_array_entry 61: 00000000000009b4 0 FUNC LOCAL DEFAULT 13 frame_dummy 62: 0000000000010db8 0 NOTYPE LOCAL DEFAULT 17 $d 63: 0000000000010db8 0 OBJECT LOCAL DEFAULT 17 __frame_dummy_init_array_entry 64: 0000000000011040 0 NOTYPE LOCAL DEFAULT 24 $d 65: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.oS 66: 0000000000000a3c 0 NOTYPE LOCAL DEFAULT 13 $x 67: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 68: 0000000000000ae8 0 NOTYPE LOCAL DEFAULT 16 $d 69: 0000000000000ae8 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 70: 0000000000010dc8 0 NOTYPE LOCAL DEFAULT 19 $d 71: 0000000000010dc8 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 72: 0000000000000000 0 FILE LOCAL DEFAULT ABS 73: 0000000000010dc0 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 74: 0000000000011038 0 OBJECT LOCAL DEFAULT 23 __dso_handle 75: 0000000000010dd0 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 76: 0000000000010db8 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 77: 0000000000011040 0 OBJECT LOCAL DEFAULT 23 __TMC_END__ 78: 0000000000010fa0 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 79: 0000000000000810 0 NOTYPE LOCAL DEFAULT 12 $x 80: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 81: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 82: 0000000000011030 0 NOTYPE WEAK DEFAULT 23 data_start 83: 0000000000011040 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 84: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.17 85: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 86: 0000000000011040 0 NOTYPE GLOBAL DEFAULT 23 _edata 87: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 88: 0000000000000ab8 0 FUNC GLOBAL DEFAULT 14 _fini 89: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 __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: 0000000000011030 0 NOTYPE GLOBAL DEFAULT 23 __data_start 93: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 94: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 95: 00000000000009e4 88 FUNC GLOBAL DEFAULT 13 announcement 96: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 97: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 98: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 _end 99: 0000000000000890 0 FUNC GLOBAL DEFAULT 13 _start 100: 0000000000011048 0 NOTYPE GLOBAL DEFAULT 24 __end__ 101: 0000000000011040 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 102: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 103: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 104: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 105: 00000000000007d8 0 FUNC GLOBAL DEFAULT 11 _init # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x55560279e4) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x55853709e4) # 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 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-linked hello.c /usr/bin/gcc-4.8 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-linked hello.c /usr/bin/ld.bfd -z now --sysroot=/ --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -pie -z relro -o ../build-tree/wrapper-test-linked /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/4.8/crtbeginS.o -L../build-tree -L/usr/lib/gcc/aarch64-linux-gnu/4.8 -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../../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/4.8/../../.. -Bsymbolic-functions -z relro /tmp/ccCeWKlq.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/aarch64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is DYN (Shared object file) Entry point 0x890 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000188 0x000188 R E 0x8 INTERP 0x0001c8 0x00000000000001c8 0x00000000000001c8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000aec 0x000aec R E 0x10000 LOAD 0x000d68 0x0000000000010d68 0x0000000000010d68 0x0002a8 0x0002b0 RW 0x10000 DYNAMIC 0x000d80 0x0000000000010d80 0x0000000000010d80 0x0001f0 0x0001f0 RW 0x8 NOTE 0x0001e4 0x00000000000001e4 0x00000000000001e4 0x000044 0x000044 R 0x4 GNU_RELRO 0x000d68 0x0000000000010d68 0x0000000000010d68 0x000298 0x000298 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xd80 contains 27 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x7d8 0x000000000000000d (FINI) 0xab8 0x0000000000000019 (INIT_ARRAY) 0x10d68 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x10d70 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x228 0x0000000000000005 (STRTAB) 0x4c8 0x0000000000000006 (SYMTAB) 0x288 0x000000000000000a (STRSZ) 290 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x10f70 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x748 0x0000000000000007 (RELA) 0x640 0x0000000000000008 (RELASZ) 264 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x0000000000000018 (BIND_NOW) 0x000000006ffffffb (FLAGS_1) Flags: NOW 0x000000006ffffffe (VERNEED) 0x620 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x5ea 0x000000006ffffff9 (RELACOUNT) 6 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x640 contains 11 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010d68 0000000000000403 R_AARCH64_RELATIVE 9b4 0000000000010d70 0000000000000403 R_AARCH64_RELATIVE 96c 0000000000010fc0 0000000000000403 R_AARCH64_RELATIVE ab4 0000000000010fe0 0000000000000403 R_AARCH64_RELATIVE a3c 0000000000010fe8 0000000000000403 R_AARCH64_RELATIVE 870 0000000000011008 0000000000000403 R_AARCH64_RELATIVE 11008 0000000000010fc8 0000000300000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 0000000000010fd0 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize + 0 0000000000010fd8 0000000800000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000010ff0 0000000a00000401 R_AARCH64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0 0000000000010ff8 0000000b00000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x748 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010f88 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize + 0 0000000000010f90 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf + 0 0000000000010f98 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000010fa0 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk + 0 0000000000010fa8 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000010fb0 0000000900000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort + 0 Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 0000000000010d78 0 SECTION LOCAL DEFAULT 19 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 4: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (2) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (2) 8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 10: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 12: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 13: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 22 _edata 14: 0000000000011000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 15: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _end 16: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __bss_end__ 17: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 20: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 21: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 23: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __end__ Symbol table '.symtab' contains 105 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 00000000000001e4 0 SECTION LOCAL DEFAULT 2 3: 0000000000000204 0 SECTION LOCAL DEFAULT 3 4: 0000000000000228 0 SECTION LOCAL DEFAULT 4 5: 0000000000000288 0 SECTION LOCAL DEFAULT 5 6: 00000000000004c8 0 SECTION LOCAL DEFAULT 6 7: 00000000000005ea 0 SECTION LOCAL DEFAULT 7 8: 0000000000000620 0 SECTION LOCAL DEFAULT 8 9: 0000000000000640 0 SECTION LOCAL DEFAULT 9 10: 0000000000000748 0 SECTION LOCAL DEFAULT 10 11: 00000000000007d8 0 SECTION LOCAL DEFAULT 11 12: 00000000000007f0 0 SECTION LOCAL DEFAULT 12 13: 0000000000000870 0 SECTION LOCAL DEFAULT 13 14: 0000000000000ab8 0 SECTION LOCAL DEFAULT 14 15: 0000000000000ac8 0 SECTION LOCAL DEFAULT 15 16: 0000000000000ae8 0 SECTION LOCAL DEFAULT 16 17: 0000000000010d68 0 SECTION LOCAL DEFAULT 17 18: 0000000000010d70 0 SECTION LOCAL DEFAULT 18 19: 0000000000010d78 0 SECTION LOCAL DEFAULT 19 20: 0000000000010d80 0 SECTION LOCAL DEFAULT 20 21: 0000000000010f70 0 SECTION LOCAL DEFAULT 21 22: 0000000000011000 0 SECTION LOCAL DEFAULT 22 23: 0000000000011010 0 SECTION LOCAL DEFAULT 23 24: 0000000000000000 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 /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o 34: 00000000000001e4 0 NOTYPE LOCAL DEFAULT 2 $d 35: 0000000000000890 0 NOTYPE LOCAL DEFAULT 13 $x 36: 0000000000000ac8 0 NOTYPE LOCAL DEFAULT 15 $d 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o 38: 00000000000008cc 0 NOTYPE LOCAL DEFAULT 13 $x 39: 00000000000008cc 20 FUNC LOCAL DEFAULT 13 call_weak_fn 40: 00000000000007d8 0 NOTYPE LOCAL DEFAULT 11 $x 41: 0000000000000ab8 0 NOTYPE LOCAL DEFAULT 14 $x 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o 43: 00000000000007e4 0 NOTYPE LOCAL DEFAULT 11 $x 44: 0000000000000ac0 0 NOTYPE LOCAL DEFAULT 14 $x 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 46: 00000000000009e4 0 NOTYPE LOCAL DEFAULT 13 $x 47: 0000000000000870 0 NOTYPE LOCAL DEFAULT 13 $x 48: 0000000000000ad0 0 NOTYPE LOCAL DEFAULT 15 $d 49: 0000000000000010 0 NOTYPE LOCAL DEFAULT 29 $d 50: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 51: 0000000000010d78 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 52: 00000000000008e0 0 NOTYPE LOCAL DEFAULT 13 $x 53: 00000000000008e0 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 54: 0000000000000924 0 FUNC LOCAL DEFAULT 13 register_tm_clones 55: 0000000000011008 0 NOTYPE LOCAL DEFAULT 22 $d 56: 000000000000096c 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 57: 0000000000011010 1 OBJECT LOCAL DEFAULT 23 completed.7416 58: 0000000000010d70 0 NOTYPE LOCAL DEFAULT 18 $d 59: 0000000000010d70 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fini_array_entry 60: 00000000000009b4 0 FUNC LOCAL DEFAULT 13 frame_dummy 61: 0000000000010d68 0 NOTYPE LOCAL DEFAULT 17 $d 62: 0000000000010d68 0 OBJECT LOCAL DEFAULT 17 __frame_dummy_init_array_entry 63: 0000000000011010 0 NOTYPE LOCAL DEFAULT 23 $d 64: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.oS 65: 0000000000000a3c 0 NOTYPE LOCAL DEFAULT 13 $x 66: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 67: 0000000000000ae8 0 NOTYPE LOCAL DEFAULT 16 $d 68: 0000000000000ae8 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 69: 0000000000010d78 0 NOTYPE LOCAL DEFAULT 19 $d 70: 0000000000010d78 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 71: 0000000000000000 0 FILE LOCAL DEFAULT ABS 72: 0000000000010d70 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 73: 0000000000011008 0 OBJECT LOCAL DEFAULT 22 __dso_handle 74: 0000000000010d80 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 75: 0000000000010d68 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 76: 0000000000011010 0 OBJECT LOCAL DEFAULT 22 __TMC_END__ 77: 0000000000010fb8 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 78: 0000000000000810 0 NOTYPE LOCAL DEFAULT 12 $x 79: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 80: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 81: 0000000000011000 0 NOTYPE WEAK DEFAULT 22 data_start 82: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 83: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.17 84: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 85: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 22 _edata 86: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 87: 0000000000000ab8 0 FUNC GLOBAL DEFAULT 14 _fini 88: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __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: 0000000000011000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 92: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 93: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 94: 00000000000009e4 88 FUNC GLOBAL DEFAULT 13 announcement 95: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 96: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 97: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _end 98: 0000000000000890 0 FUNC GLOBAL DEFAULT 13 _start 99: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __end__ 100: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 101: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 102: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 103: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 104: 00000000000007d8 0 FUNC GLOBAL DEFAULT 11 _init # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x558f5389e4) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x555e3b09e4) # Check state of hardening features via check script perl ../build-tree/hardening-check -s ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: yes Stack protected: no, not found! (ignored) 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 (Shared object file) # Skipped Stack Protector test # 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 0x000d68 0x0000000000010d68 0x0000000000010d68 0x000298 0x000298 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 -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/gcc-4.8 -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/ld.bfd -z now --sysroot=/ --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -pie -z relro -o ../build-tree/wrapper-test-fPIC-direct /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/4.8/crtbeginS.o -L../build-tree -L/usr/lib/gcc/aarch64-linux-gnu/4.8 -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../../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/4.8/../../.. -Bsymbolic-functions -z relro /tmp/cc82O2Gh.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/aarch64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o ../build-tree/wrapper-test-fPIC-direct ../build-tree/wrapper-test-fPIC-direct: ok (0x55731cea24) # Build .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC.o -c hello.c /usr/bin/gcc-4.8 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC.o -c hello.c # Link .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/gcc-4.8 -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/ld.bfd -z now --sysroot=/ --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -pie -z relro -o ../build-tree/wrapper-test-fPIC /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/4.8/crtbeginS.o -L../build-tree -L/usr/lib/gcc/aarch64-linux-gnu/4.8 -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../../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/4.8/../../.. -Bsymbolic-functions -z relro ../build-tree/wrapper-test-fPIC.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/aarch64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC: ok (0x558ce1ca24) # Make sure build fails due to -Werror=format-security ! ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/gcc-4.8 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -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] 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/ -g -O2 -Wformat -Werror=format-security -O2 -Wno-format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/gcc-4.8 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wno-format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/ld.bfd -z now --sysroot=/ --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -pie -z relro -o ../build-tree/wrapper-test-format-security /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/4.8/crtbeginS.o -L../build-tree -L/usr/lib/gcc/aarch64-linux-gnu/4.8 -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/4.8/../../../../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/4.8/../../.. -Bsymbolic-functions -z relro /tmp/ccw4eECi.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/aarch64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o # Skipped SSP buffer size test # Skipped SSP buffer size test ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -c -o ../build-tree/wrapper-test-all.o hello.c /usr/bin/gcc-4.8 -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -Wformat -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -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. Relocation section '.rela.text' at offset 0x1710 contains 8 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000010 0000000800000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata.str1.8 + 0 0000000000000020 0000000800000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata.str1.8 + 0 0000000000000028 000000150000011b R_AARCH64_CALL26 0000000000000000 snprintf + 0 000000000000002c 0000000800000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata.str1.8 + 8 0000000000000030 0000001400000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 announcement + 0 0000000000000038 0000000800000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata.str1.8 + 8 000000000000003c 0000001400000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 announcement + 0 0000000000000044 000000160000011b R_AARCH64_CALL26 0000000000000000 __printf_chk + 0 Relocation section '.rela.text.startup' at offset 0x17d0 contains 1 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000000c 000000140000011b R_AARCH64_CALL26 0000000000000000 announcement + 0 Relocation section '.rela.debug_info' at offset 0x17e8 contains 85 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000006 0000000b00000102 R_AARCH64_ABS32 0000000000000000 .debug_abbrev + 0 000000000000000c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 200 0000000000000011 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2aa 0000000000000015 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 7d 0000000000000019 0000000e00000102 R_AARCH64_ABS32 0000000000000000 .debug_ranges + 0 0000000000000025 0000000f00000102 R_AARCH64_ABS32 0000000000000000 .debug_line + 0 000000000000002a 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2d 0000000000000037 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 160 000000000000003e 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 103 0000000000000045 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 21d 000000000000004c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 13e 0000000000000053 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 116 000000000000005a 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 23 0000000000000068 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + c7 000000000000006d 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 253 0000000000000078 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 172 0000000000000085 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 34 0000000000000094 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1c0 0000000000000099 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + d 00000000000000a5 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 53 00000000000000b1 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1a7 00000000000000bd 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 70 00000000000000c9 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 27f 00000000000000d5 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 17c 00000000000000e1 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 45 00000000000000ed 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 236 00000000000000fa 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 5a 0000000000000107 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1b4 0000000000000114 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 29c 0000000000000121 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 25b 000000000000012e 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 16 000000000000013b 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 67 0000000000000148 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 24c 0000000000000155 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 244 0000000000000162 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 271 000000000000016f 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + f7 000000000000017c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + d7 0000000000000189 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 28d 0000000000000196 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 156 00000000000001a3 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + c1 00000000000001b0 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 3d 00000000000001bd 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1dd 00000000000001ca 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1e4 00000000000001d7 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1eb 00000000000001e4 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1f2 00000000000001f1 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1f9 00000000000001fe 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 279 000000000000020b 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 18b 0000000000000219 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2b9 0000000000000220 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 14b 000000000000022c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1d7 0000000000000238 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + f1 0000000000000244 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + e3 0000000000000290 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + b3 0000000000000297 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 122 000000000000029c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + e8 00000000000002c2 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 230 00000000000002cf 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + d0 00000000000002df 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 230 00000000000002ec 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1ca 00000000000002f6 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 000000000000030d 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 139 0000000000000317 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + 0 000000000000032f 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 10 000000000000034c 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 0 0000000000000361 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + 4c 0000000000000366 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2c 000000000000037e 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 0 000000000000039a 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2c 00000000000003b3 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 8 00000000000003bd 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 48 00000000000003ce 0000001400000101 R_AARCH64_ABS64 0000000000000000 announcement + 0 00000000000003e1 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 8 0000000000000403 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1c5 000000000000040d 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 0000000000000424 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 111 000000000000042e 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + c2 0000000000000433 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + ae 000000000000043d 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + fb 0000000000000442 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 10 0000000000000456 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 26b 0000000000000461 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2b2 000000000000046c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 194 0000000000000472 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + e8 0000000000000490 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 0 Relocation section '.rela.debug_loc' at offset 0x1fe0 contains 24 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000000 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000008 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 28 0000000000000013 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 28 000000000000001b 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2b 0000000000000026 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2b 000000000000002e 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 58 000000000000004c 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + c 0000000000000054 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 18 0000000000000061 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 18 0000000000000069 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 4c 0000000000000074 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 4c 000000000000007c 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 50 0000000000000089 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 50 0000000000000091 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 54 000000000000009c 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 54 00000000000000a4 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 58 00000000000000c2 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 00000000000000ca 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + c 00000000000000d5 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + c 00000000000000dd 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 20 00000000000000fb 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 0000000000000103 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + f 000000000000010e 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + f 0000000000000116 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 20 Relocation section '.rela.debug_aranges' at offset 0x2220 contains 3 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000006 0000000a00000102 R_AARCH64_ABS32 0000000000000000 .debug_info + 0 0000000000000010 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000020 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 Relocation section '.rela.debug_ranges' at offset 0x2268 contains 4 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000000 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000008 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 58 0000000000000010 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 0000000000000018 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 20 Relocation section '.rela.debug_line' at offset 0x22c8 contains 2 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 00000000000000ce 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 00000000000000ef 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 Relocation section '.rela.debug_frame' at offset 0x22f8 contains 4 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000014 0000001200000102 R_AARCH64_ABS32 0000000000000000 .debug_frame + 0 0000000000000018 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000054 0000001200000102 R_AARCH64_ABS32 0000000000000000 .debug_frame + 0 0000000000000058 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 Symbol table '.symtab' contains 24 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 NOTYPE LOCAL DEFAULT 1 $x 6: 0000000000000000 0 SECTION LOCAL DEFAULT 5 7: 0000000000000000 0 NOTYPE LOCAL DEFAULT 5 $x 8: 0000000000000000 0 SECTION LOCAL DEFAULT 7 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 7 $d 10: 0000000000000000 0 SECTION LOCAL DEFAULT 8 11: 0000000000000000 0 SECTION LOCAL DEFAULT 10 12: 0000000000000000 0 SECTION LOCAL DEFAULT 11 13: 0000000000000000 0 SECTION LOCAL DEFAULT 13 14: 0000000000000000 0 SECTION LOCAL DEFAULT 15 15: 0000000000000000 0 SECTION LOCAL DEFAULT 17 16: 0000000000000000 0 SECTION LOCAL DEFAULT 19 17: 0000000000000010 0 NOTYPE LOCAL DEFAULT 21 $d 18: 0000000000000000 0 SECTION LOCAL DEFAULT 21 19: 0000000000000000 0 SECTION LOCAL DEFAULT 20 20: 0000000000000000 88 FUNC GLOBAL DEFAULT 1 announcement 21: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND snprintf 22: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __printf_chk 23: 0000000000000000 32 FUNC GLOBAL DEFAULT 5 main perl ../build-tree/hardening-check -s ../build-tree/wrapper-test-all.a ../build-tree/wrapper-test-all.a: Position Independent Executable: no, object archive (ignored) Stack protected: no, not found! (ignored) Fortify Source functions: yes (some protected functions found) Read-only relocations: no, non-ELF (ignored) Immediate binding: no, non-ELF (ignored) DEB_BUILD_HARDENING=0 ../build-tree/hardened-cc -B ../build-tree/ -c -o ../build-tree/wrapper-test-none.o hello.c /usr/bin/gcc-4.8 -B ../build-tree/ -c -o ../build-tree/wrapper-test-none.o hello.c ar r ../build-tree/wrapper-test-none.a ../build-tree/wrapper-test-none.o ar: creating ../build-tree/wrapper-test-none.a readelf -ldrsW ../build-tree/wrapper-test-none.a File: ../build-tree/wrapper-test-none.a(wrapper-test-none.o) There are no program headers in this file. Relocation section '.rela.text' at offset 0x540 contains 9 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000018 0000000500000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata + 0 000000000000001c 0000000500000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata + 0 000000000000002c 0000000a0000011b R_AARCH64_CALL26 0000000000000000 snprintf + 0 0000000000000030 0000000500000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata + 8 0000000000000034 0000000500000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata + 8 000000000000003c 0000000900000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 announcement + 0 0000000000000040 0000000900000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 announcement + 0 0000000000000044 0000000b0000011b R_AARCH64_CALL26 0000000000000000 printf + 0 000000000000006c 000000090000011b R_AARCH64_CALL26 0000000000000000 announcement + 0 Symbol table '.symtab' contains 13 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 84 FUNC GLOBAL DEFAULT 1 announcement 10: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND snprintf 11: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND printf 12: 0000000000000054 48 FUNC GLOBAL DEFAULT 1 main if perl ../build-tree/hardening-check -s ../build-tree/wrapper-test-none.a; then exit 1; fi ../build-tree/wrapper-test-none.a: Position Independent Executable: no, object archive (ignored) Stack protected: no, not found! (ignored) Fortify Source functions: no, only unprotected functions found! Read-only relocations: no, non-ELF (ignored) Immediate binding: no, non-ELF (ignored) make[3]: Leaving directory `/build/buildd/hardening-wrapper-2.5ubuntu1/tests' make -f Makefile.includes check make[3]: Entering directory `/build/buildd/hardening-wrapper-2.5ubuntu1/tests' # Compiler and linker options disabled. DEB_BUILD_HARDENING=0 cc -o ../build-tree/includes-test-stock hello.c readelf -ldrsW ../build-tree/includes-test-stock Elf file type is EXEC (Executable file) Entry point 0x400480 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x000188 0x000188 R E 0x8 INTERP 0x0001c8 0x00000000004001c8 0x00000000004001c8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x000714 0x000714 R E 0x10000 LOAD 0x000df0 0x0000000000410df0 0x0000000000410df0 0x000248 0x000250 RW 0x10000 DYNAMIC 0x000e08 0x0000000000410e08 0x0000000000410e08 0x0001d0 0x0001d0 RW 0x8 NOTE 0x0001e4 0x00000000004001e4 0x00000000004001e4 0x000044 0x000044 R 0x4 GNU_RELRO 0x000df0 0x0000000000410df0 0x0000000000410df0 0x000210 0x000210 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xe08 contains 24 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x4003f8 0x000000000000000d (FINI) 0x4006e0 0x0000000000000019 (INIT_ARRAY) 0x410df0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x410df8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x400228 0x0000000000000005 (STRTAB) 0x4002f0 0x0000000000000006 (SYMTAB) 0x400260 0x000000000000000a (STRSZ) 70 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x410fe8 0x0000000000000002 (PLTRELSZ) 120 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x400380 0x0000000000000007 (RELA) 0x400368 0x0000000000000008 (RELASZ) 24 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x400348 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x400336 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x368 contains 1 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000410fe0 0000000100000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x380 contains 5 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000411000 0000000200000402 R_AARCH64_JUMP_SLOT 0000000000400430 snprintf + 0 0000000000411008 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000400440 __libc_start_main + 0 0000000000411010 0000000100000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000411018 0000000300000402 R_AARCH64_JUMP_SLOT 0000000000400460 abort + 0 0000000000411020 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000400470 printf + 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 NOTYPE WEAK DEFAULT UND __gmon_start__ 2: 0000000000400430 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 3: 0000000000400460 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 4: 0000000000400470 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.17 (2) 5: 0000000000400440 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) Symbol table '.symtab' contains 101 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000004001c8 0 SECTION LOCAL DEFAULT 1 2: 00000000004001e4 0 SECTION LOCAL DEFAULT 2 3: 0000000000400204 0 SECTION LOCAL DEFAULT 3 4: 0000000000400228 0 SECTION LOCAL DEFAULT 4 5: 0000000000400260 0 SECTION LOCAL DEFAULT 5 6: 00000000004002f0 0 SECTION LOCAL DEFAULT 6 7: 0000000000400336 0 SECTION LOCAL DEFAULT 7 8: 0000000000400348 0 SECTION LOCAL DEFAULT 8 9: 0000000000400368 0 SECTION LOCAL DEFAULT 9 10: 0000000000400380 0 SECTION LOCAL DEFAULT 10 11: 00000000004003f8 0 SECTION LOCAL DEFAULT 11 12: 0000000000400410 0 SECTION LOCAL DEFAULT 12 13: 0000000000400480 0 SECTION LOCAL DEFAULT 13 14: 00000000004006e0 0 SECTION LOCAL DEFAULT 14 15: 00000000004006f0 0 SECTION LOCAL DEFAULT 15 16: 0000000000400710 0 SECTION LOCAL DEFAULT 16 17: 0000000000410df0 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 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crt1.o 27: 00000000004001e4 0 NOTYPE LOCAL DEFAULT 2 $d 28: 0000000000400480 0 NOTYPE LOCAL DEFAULT 13 $x 29: 00000000004004b0 0 NOTYPE LOCAL DEFAULT 13 $d 30: 00000000004006f0 0 NOTYPE LOCAL DEFAULT 15 $d 31: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o 32: 00000000004004c8 0 NOTYPE LOCAL DEFAULT 13 $x 33: 00000000004004c8 20 FUNC LOCAL DEFAULT 13 call_weak_fn 34: 00000000004003f8 0 NOTYPE LOCAL DEFAULT 11 $x 35: 00000000004006e0 0 NOTYPE LOCAL DEFAULT 14 $x 36: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o 37: 0000000000400404 0 NOTYPE LOCAL DEFAULT 11 $x 38: 00000000004006e8 0 NOTYPE LOCAL DEFAULT 14 $x 39: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 40: 0000000000410e00 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 41: 00000000004004e0 0 NOTYPE LOCAL DEFAULT 13 $x 42: 00000000004004e0 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 43: 0000000000400520 0 NOTYPE LOCAL DEFAULT 13 $d 44: 0000000000400528 0 NOTYPE LOCAL DEFAULT 13 $x 45: 0000000000400528 0 FUNC LOCAL DEFAULT 13 register_tm_clones 46: 0000000000400570 0 NOTYPE LOCAL DEFAULT 13 $d 47: 0000000000411030 0 NOTYPE LOCAL DEFAULT 23 $d 48: 0000000000400578 0 NOTYPE LOCAL DEFAULT 13 $x 49: 0000000000400578 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 50: 0000000000411038 1 OBJECT LOCAL DEFAULT 24 completed.7416 51: 0000000000410df8 0 NOTYPE LOCAL DEFAULT 18 $d 52: 0000000000410df8 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fini_array_entry 53: 00000000004005a8 0 FUNC LOCAL DEFAULT 13 frame_dummy 54: 00000000004005d8 0 NOTYPE LOCAL DEFAULT 13 $d 55: 0000000000410df0 0 NOTYPE LOCAL DEFAULT 17 $d 56: 0000000000410df0 0 OBJECT LOCAL DEFAULT 17 __frame_dummy_init_array_entry 57: 0000000000411038 0 NOTYPE LOCAL DEFAULT 24 $d 58: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 59: 00000000004006f8 0 NOTYPE LOCAL DEFAULT 15 $d 60: 00000000004005e0 0 NOTYPE LOCAL DEFAULT 13 $x 61: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.oS 62: 0000000000400664 0 NOTYPE LOCAL DEFAULT 13 $x 63: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 64: 0000000000400710 0 NOTYPE LOCAL DEFAULT 16 $d 65: 0000000000400710 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 66: 0000000000410e00 0 NOTYPE LOCAL DEFAULT 19 $d 67: 0000000000410e00 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 68: 0000000000000000 0 FILE LOCAL DEFAULT ABS 69: 0000000000410df8 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 70: 0000000000410e08 0 OBJECT LOCAL DEFAULT 20 _DYNAMIC 71: 0000000000410df0 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 72: 0000000000410fd8 0 OBJECT LOCAL DEFAULT 21 _GLOBAL_OFFSET_TABLE_ 73: 0000000000400430 0 NOTYPE LOCAL DEFAULT 12 $x 74: 00000000004006dc 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 75: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 76: 0000000000411028 0 NOTYPE WEAK DEFAULT 23 data_start 77: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start__ 78: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _bss_end__ 79: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 23 _edata 80: 0000000000400430 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 81: 00000000004006e0 0 FUNC GLOBAL DEFAULT 14 _fini 82: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 __bss_end__ 83: 0000000000400440 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.17 84: 0000000000411028 0 NOTYPE GLOBAL DEFAULT 23 __data_start 85: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 86: 0000000000411030 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 87: 0000000000400460 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 88: 00000000004005e0 84 FUNC GLOBAL DEFAULT 13 announcement 89: 00000000004006f0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 90: 0000000000400664 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 91: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 _end 92: 0000000000400480 0 FUNC GLOBAL DEFAULT 13 _start 93: 0000000000411040 0 NOTYPE GLOBAL DEFAULT 24 __end__ 94: 0000000000411038 0 NOTYPE GLOBAL DEFAULT 24 __bss_start 95: 0000000000400634 48 FUNC GLOBAL DEFAULT 13 main 96: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 97: 0000000000411038 0 OBJECT GLOBAL HIDDEN 23 __TMC_END__ 98: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 99: 0000000000400470 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.17 100: 00000000004003f8 0 FUNC GLOBAL DEFAULT 11 _init ../build-tree/includes-test-stock ../build-tree/includes-test-stock: ok (0x4005e0) # Compiler options enabled. (linker is not wrapper) cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-test-compiled hello.c readelf -ldrsW ../build-tree/includes-test-compiled Elf file type is DYN (Shared object file) Entry point 0x890 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000188 0x000188 R E 0x8 INTERP 0x0001c8 0x00000000000001c8 0x00000000000001c8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000aec 0x000aec R E 0x10000 LOAD 0x000d68 0x0000000000010d68 0x0000000000010d68 0x0002a8 0x0002b0 RW 0x10000 DYNAMIC 0x000d80 0x0000000000010d80 0x0000000000010d80 0x0001f0 0x0001f0 RW 0x8 NOTE 0x0001e4 0x00000000000001e4 0x00000000000001e4 0x000044 0x000044 R 0x4 GNU_RELRO 0x000d68 0x0000000000010d68 0x0000000000010d68 0x000298 0x000298 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xd80 contains 27 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x7d8 0x000000000000000d (FINI) 0xab8 0x0000000000000019 (INIT_ARRAY) 0x10d68 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x10d70 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x228 0x0000000000000005 (STRTAB) 0x4c8 0x0000000000000006 (SYMTAB) 0x288 0x000000000000000a (STRSZ) 290 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x10f70 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x748 0x0000000000000007 (RELA) 0x640 0x0000000000000008 (RELASZ) 264 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x0000000000000018 (BIND_NOW) 0x000000006ffffffb (FLAGS_1) Flags: NOW 0x000000006ffffffe (VERNEED) 0x620 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x5ea 0x000000006ffffff9 (RELACOUNT) 6 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x640 contains 11 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010d68 0000000000000403 R_AARCH64_RELATIVE 9b4 0000000000010d70 0000000000000403 R_AARCH64_RELATIVE 96c 0000000000010fc0 0000000000000403 R_AARCH64_RELATIVE ab4 0000000000010fe0 0000000000000403 R_AARCH64_RELATIVE a3c 0000000000010fe8 0000000000000403 R_AARCH64_RELATIVE 870 0000000000011008 0000000000000403 R_AARCH64_RELATIVE 11008 0000000000010fc8 0000000300000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 0000000000010fd0 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize + 0 0000000000010fd8 0000000800000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000010ff0 0000000a00000401 R_AARCH64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0 0000000000010ff8 0000000b00000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x748 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010f88 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize + 0 0000000000010f90 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf + 0 0000000000010f98 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000010fa0 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk + 0 0000000000010fa8 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000010fb0 0000000900000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort + 0 Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 0000000000010d78 0 SECTION LOCAL DEFAULT 19 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 4: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (2) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (2) 8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 10: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 12: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 13: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 22 _edata 14: 0000000000011000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 15: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _end 16: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __bss_end__ 17: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 20: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 21: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 23: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __end__ Symbol table '.symtab' contains 105 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 00000000000001e4 0 SECTION LOCAL DEFAULT 2 3: 0000000000000204 0 SECTION LOCAL DEFAULT 3 4: 0000000000000228 0 SECTION LOCAL DEFAULT 4 5: 0000000000000288 0 SECTION LOCAL DEFAULT 5 6: 00000000000004c8 0 SECTION LOCAL DEFAULT 6 7: 00000000000005ea 0 SECTION LOCAL DEFAULT 7 8: 0000000000000620 0 SECTION LOCAL DEFAULT 8 9: 0000000000000640 0 SECTION LOCAL DEFAULT 9 10: 0000000000000748 0 SECTION LOCAL DEFAULT 10 11: 00000000000007d8 0 SECTION LOCAL DEFAULT 11 12: 00000000000007f0 0 SECTION LOCAL DEFAULT 12 13: 0000000000000870 0 SECTION LOCAL DEFAULT 13 14: 0000000000000ab8 0 SECTION LOCAL DEFAULT 14 15: 0000000000000ac8 0 SECTION LOCAL DEFAULT 15 16: 0000000000000ae8 0 SECTION LOCAL DEFAULT 16 17: 0000000000010d68 0 SECTION LOCAL DEFAULT 17 18: 0000000000010d70 0 SECTION LOCAL DEFAULT 18 19: 0000000000010d78 0 SECTION LOCAL DEFAULT 19 20: 0000000000010d80 0 SECTION LOCAL DEFAULT 20 21: 0000000000010f70 0 SECTION LOCAL DEFAULT 21 22: 0000000000011000 0 SECTION LOCAL DEFAULT 22 23: 0000000000011010 0 SECTION LOCAL DEFAULT 23 24: 0000000000000000 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 /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o 34: 00000000000001e4 0 NOTYPE LOCAL DEFAULT 2 $d 35: 0000000000000890 0 NOTYPE LOCAL DEFAULT 13 $x 36: 0000000000000ac8 0 NOTYPE LOCAL DEFAULT 15 $d 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o 38: 00000000000008cc 0 NOTYPE LOCAL DEFAULT 13 $x 39: 00000000000008cc 20 FUNC LOCAL DEFAULT 13 call_weak_fn 40: 00000000000007d8 0 NOTYPE LOCAL DEFAULT 11 $x 41: 0000000000000ab8 0 NOTYPE LOCAL DEFAULT 14 $x 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o 43: 00000000000007e4 0 NOTYPE LOCAL DEFAULT 11 $x 44: 0000000000000ac0 0 NOTYPE LOCAL DEFAULT 14 $x 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 46: 00000000000009e4 0 NOTYPE LOCAL DEFAULT 13 $x 47: 0000000000000870 0 NOTYPE LOCAL DEFAULT 13 $x 48: 0000000000000ad0 0 NOTYPE LOCAL DEFAULT 15 $d 49: 0000000000000010 0 NOTYPE LOCAL DEFAULT 29 $d 50: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 51: 0000000000010d78 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 52: 00000000000008e0 0 NOTYPE LOCAL DEFAULT 13 $x 53: 00000000000008e0 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 54: 0000000000000924 0 FUNC LOCAL DEFAULT 13 register_tm_clones 55: 0000000000011008 0 NOTYPE LOCAL DEFAULT 22 $d 56: 000000000000096c 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 57: 0000000000011010 1 OBJECT LOCAL DEFAULT 23 completed.7416 58: 0000000000010d70 0 NOTYPE LOCAL DEFAULT 18 $d 59: 0000000000010d70 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fini_array_entry 60: 00000000000009b4 0 FUNC LOCAL DEFAULT 13 frame_dummy 61: 0000000000010d68 0 NOTYPE LOCAL DEFAULT 17 $d 62: 0000000000010d68 0 OBJECT LOCAL DEFAULT 17 __frame_dummy_init_array_entry 63: 0000000000011010 0 NOTYPE LOCAL DEFAULT 23 $d 64: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.oS 65: 0000000000000a3c 0 NOTYPE LOCAL DEFAULT 13 $x 66: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 67: 0000000000000ae8 0 NOTYPE LOCAL DEFAULT 16 $d 68: 0000000000000ae8 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 69: 0000000000010d78 0 NOTYPE LOCAL DEFAULT 19 $d 70: 0000000000010d78 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 71: 0000000000000000 0 FILE LOCAL DEFAULT ABS 72: 0000000000010d70 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 73: 0000000000011008 0 OBJECT LOCAL DEFAULT 22 __dso_handle 74: 0000000000010d80 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 75: 0000000000010d68 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 76: 0000000000011010 0 OBJECT LOCAL DEFAULT 22 __TMC_END__ 77: 0000000000010fb8 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 78: 0000000000000810 0 NOTYPE LOCAL DEFAULT 12 $x 79: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 80: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 81: 0000000000011000 0 NOTYPE WEAK DEFAULT 22 data_start 82: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 83: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.17 84: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 85: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 22 _edata 86: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 87: 0000000000000ab8 0 FUNC GLOBAL DEFAULT 14 _fini 88: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __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: 0000000000011000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 92: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 93: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 94: 00000000000009e4 88 FUNC GLOBAL DEFAULT 13 announcement 95: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 96: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 97: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _end 98: 0000000000000890 0 FUNC GLOBAL DEFAULT 13 _start 99: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __end__ 100: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 101: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 102: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 103: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 104: 00000000000007d8 0 FUNC GLOBAL DEFAULT 11 _init # Run twice to show off PIE, if available in kernel ../build-tree/includes-test-compiled ../build-tree/includes-test-compiled: ok (0x55771d19e4) ../build-tree/includes-test-compiled ../build-tree/includes-test-compiled: ok (0x55827709e4) # Compiler and linker options enabled. cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-test-linked hello.c readelf -ldrsW ../build-tree/includes-test-linked Elf file type is DYN (Shared object file) Entry point 0x890 There are 7 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000188 0x000188 R E 0x8 INTERP 0x0001c8 0x00000000000001c8 0x00000000000001c8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000aec 0x000aec R E 0x10000 LOAD 0x000d68 0x0000000000010d68 0x0000000000010d68 0x0002a8 0x0002b0 RW 0x10000 DYNAMIC 0x000d80 0x0000000000010d80 0x0000000000010d80 0x0001f0 0x0001f0 RW 0x8 NOTE 0x0001e4 0x00000000000001e4 0x00000000000001e4 0x000044 0x000044 R 0x4 GNU_RELRO 0x000d68 0x0000000000010d68 0x0000000000010d68 0x000298 0x000298 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xd80 contains 27 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x7d8 0x000000000000000d (FINI) 0xab8 0x0000000000000019 (INIT_ARRAY) 0x10d68 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x10d70 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x228 0x0000000000000005 (STRTAB) 0x4c8 0x0000000000000006 (SYMTAB) 0x288 0x000000000000000a (STRSZ) 290 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x10f70 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x748 0x0000000000000007 (RELA) 0x640 0x0000000000000008 (RELASZ) 264 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x0000000000000018 (BIND_NOW) 0x000000006ffffffb (FLAGS_1) Flags: NOW 0x000000006ffffffe (VERNEED) 0x620 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x5ea 0x000000006ffffff9 (RELACOUNT) 6 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x640 contains 11 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010d68 0000000000000403 R_AARCH64_RELATIVE 9b4 0000000000010d70 0000000000000403 R_AARCH64_RELATIVE 96c 0000000000010fc0 0000000000000403 R_AARCH64_RELATIVE ab4 0000000000010fe0 0000000000000403 R_AARCH64_RELATIVE a3c 0000000000010fe8 0000000000000403 R_AARCH64_RELATIVE 870 0000000000011008 0000000000000403 R_AARCH64_RELATIVE 11008 0000000000010fc8 0000000300000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 0000000000010fd0 0000000400000401 R_AARCH64_GLOB_DAT 0000000000000000 __cxa_finalize + 0 0000000000010fd8 0000000800000401 R_AARCH64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000010ff0 0000000a00000401 R_AARCH64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0 0000000000010ff8 0000000b00000401 R_AARCH64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 Relocation section '.rela.plt' at offset 0x748 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000010f88 0000000400000402 R_AARCH64_JUMP_SLOT 0000000000000000 __cxa_finalize + 0 0000000000010f90 0000000500000402 R_AARCH64_JUMP_SLOT 0000000000000000 snprintf + 0 0000000000010f98 0000000600000402 R_AARCH64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000010fa0 0000000700000402 R_AARCH64_JUMP_SLOT 0000000000000000 __printf_chk + 0 0000000000010fa8 0000000800000402 R_AARCH64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000010fb0 0000000900000402 R_AARCH64_JUMP_SLOT 0000000000000000 abort + 0 Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 0000000000010d78 0 SECTION LOCAL DEFAULT 19 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 4: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.17 (2) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.17 (2) 6: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.17 (2) 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.17 (2) 8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 9: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.17 (2) 10: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 12: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 13: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 22 _edata 14: 0000000000011000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 15: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _end 16: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __bss_end__ 17: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 20: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 21: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 23: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __end__ Symbol table '.symtab' contains 105 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000000001c8 0 SECTION LOCAL DEFAULT 1 2: 00000000000001e4 0 SECTION LOCAL DEFAULT 2 3: 0000000000000204 0 SECTION LOCAL DEFAULT 3 4: 0000000000000228 0 SECTION LOCAL DEFAULT 4 5: 0000000000000288 0 SECTION LOCAL DEFAULT 5 6: 00000000000004c8 0 SECTION LOCAL DEFAULT 6 7: 00000000000005ea 0 SECTION LOCAL DEFAULT 7 8: 0000000000000620 0 SECTION LOCAL DEFAULT 8 9: 0000000000000640 0 SECTION LOCAL DEFAULT 9 10: 0000000000000748 0 SECTION LOCAL DEFAULT 10 11: 00000000000007d8 0 SECTION LOCAL DEFAULT 11 12: 00000000000007f0 0 SECTION LOCAL DEFAULT 12 13: 0000000000000870 0 SECTION LOCAL DEFAULT 13 14: 0000000000000ab8 0 SECTION LOCAL DEFAULT 14 15: 0000000000000ac8 0 SECTION LOCAL DEFAULT 15 16: 0000000000000ae8 0 SECTION LOCAL DEFAULT 16 17: 0000000000010d68 0 SECTION LOCAL DEFAULT 17 18: 0000000000010d70 0 SECTION LOCAL DEFAULT 18 19: 0000000000010d78 0 SECTION LOCAL DEFAULT 19 20: 0000000000010d80 0 SECTION LOCAL DEFAULT 20 21: 0000000000010f70 0 SECTION LOCAL DEFAULT 21 22: 0000000000011000 0 SECTION LOCAL DEFAULT 22 23: 0000000000011010 0 SECTION LOCAL DEFAULT 23 24: 0000000000000000 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 /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/Scrt1.o 34: 00000000000001e4 0 NOTYPE LOCAL DEFAULT 2 $d 35: 0000000000000890 0 NOTYPE LOCAL DEFAULT 13 $x 36: 0000000000000ac8 0 NOTYPE LOCAL DEFAULT 15 $d 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crti.o 38: 00000000000008cc 0 NOTYPE LOCAL DEFAULT 13 $x 39: 00000000000008cc 20 FUNC LOCAL DEFAULT 13 call_weak_fn 40: 00000000000007d8 0 NOTYPE LOCAL DEFAULT 11 $x 41: 0000000000000ab8 0 NOTYPE LOCAL DEFAULT 14 $x 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS /usr/lib/gcc/aarch64-linux-gnu/4.8/../../../aarch64-linux-gnu/crtn.o 43: 00000000000007e4 0 NOTYPE LOCAL DEFAULT 11 $x 44: 0000000000000ac0 0 NOTYPE LOCAL DEFAULT 14 $x 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 46: 00000000000009e4 0 NOTYPE LOCAL DEFAULT 13 $x 47: 0000000000000870 0 NOTYPE LOCAL DEFAULT 13 $x 48: 0000000000000ad0 0 NOTYPE LOCAL DEFAULT 15 $d 49: 0000000000000010 0 NOTYPE LOCAL DEFAULT 29 $d 50: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 51: 0000000000010d78 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 52: 00000000000008e0 0 NOTYPE LOCAL DEFAULT 13 $x 53: 00000000000008e0 0 FUNC LOCAL DEFAULT 13 deregister_tm_clones 54: 0000000000000924 0 FUNC LOCAL DEFAULT 13 register_tm_clones 55: 0000000000011008 0 NOTYPE LOCAL DEFAULT 22 $d 56: 000000000000096c 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 57: 0000000000011010 1 OBJECT LOCAL DEFAULT 23 completed.7416 58: 0000000000010d70 0 NOTYPE LOCAL DEFAULT 18 $d 59: 0000000000010d70 0 OBJECT LOCAL DEFAULT 18 __do_global_dtors_aux_fini_array_entry 60: 00000000000009b4 0 FUNC LOCAL DEFAULT 13 frame_dummy 61: 0000000000010d68 0 NOTYPE LOCAL DEFAULT 17 $d 62: 0000000000010d68 0 OBJECT LOCAL DEFAULT 17 __frame_dummy_init_array_entry 63: 0000000000011010 0 NOTYPE LOCAL DEFAULT 23 $d 64: 0000000000000000 0 FILE LOCAL DEFAULT ABS elf-init.oS 65: 0000000000000a3c 0 NOTYPE LOCAL DEFAULT 13 $x 66: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 67: 0000000000000ae8 0 NOTYPE LOCAL DEFAULT 16 $d 68: 0000000000000ae8 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 69: 0000000000010d78 0 NOTYPE LOCAL DEFAULT 19 $d 70: 0000000000010d78 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 71: 0000000000000000 0 FILE LOCAL DEFAULT ABS 72: 0000000000010d70 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 73: 0000000000011008 0 OBJECT LOCAL DEFAULT 22 __dso_handle 74: 0000000000010d80 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 75: 0000000000010d68 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 76: 0000000000011010 0 OBJECT LOCAL DEFAULT 22 __TMC_END__ 77: 0000000000010fb8 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 78: 0000000000000810 0 NOTYPE LOCAL DEFAULT 12 $x 79: 0000000000000ab4 4 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 80: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 81: 0000000000011000 0 NOTYPE WEAK DEFAULT 22 data_start 82: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start__ 83: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.17 84: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _bss_end__ 85: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 22 _edata 86: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.17 87: 0000000000000ab8 0 FUNC GLOBAL DEFAULT 14 _fini 88: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __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: 0000000000011000 0 NOTYPE GLOBAL DEFAULT 22 __data_start 92: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 93: 0000000000000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.17 94: 00000000000009e4 88 FUNC GLOBAL DEFAULT 13 announcement 95: 0000000000000ac8 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 96: 0000000000000a3c 120 FUNC GLOBAL DEFAULT 13 __libc_csu_init 97: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 _end 98: 0000000000000890 0 FUNC GLOBAL DEFAULT 13 _start 99: 0000000000011018 0 NOTYPE GLOBAL DEFAULT 23 __end__ 100: 0000000000011010 0 NOTYPE GLOBAL DEFAULT 23 __bss_start 101: 0000000000000870 32 FUNC GLOBAL DEFAULT 13 main 102: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 103: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 104: 00000000000007d8 0 FUNC GLOBAL DEFAULT 11 _init # Run twice to show off PIE, if available in kernel ../build-tree/includes-test-linked ../build-tree/includes-test-linked: ok (0x5590b0b9e4) ../build-tree/includes-test-linked ../build-tree/includes-test-linked: ok (0x556029b9e4) # Check state of hardening features via check script perl ../build-tree/hardening-check -s ../build-tree/includes-test-linked ../build-tree/includes-test-linked: Position Independent Executable: yes Stack protected: no, not found! (ignored) 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/includes-test-linked | grep '^Elf file type is DYN' Elf file type is DYN (Shared object file) # Skipped Stack Protector test # Test Fortify nm ../build-tree/includes-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/includes-test-linked | grep GNU_RELRO GNU_RELRO 0x000d68 0x0000000000010d68 0x0000000000010d68 0x000298 0x000298 R 0x1 # Test for BIND_NOW readelf -dW ../build-tree/includes-test-linked | grep BIND_NOW 0x0000000000000018 (BIND_NOW) # Build directly with -fPIC already defined cc -fPIC -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-test-fPIC-direct hello.c ../build-tree/includes-test-fPIC-direct ../build-tree/includes-test-fPIC-direct: ok (0x5561e829e4) # Build .o with -fPIC already defined cc -fPIC -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-test-fPIC.o -c hello.c # Link .o with -fPIC already defined cc -fPIC -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-test-fPIC ../build-tree/includes-test-fPIC.o ../build-tree/includes-test-fPIC ../build-tree/includes-test-fPIC: ok (0x556c2ba9e4) # Make sure build fails due to -Werror=format-security ! cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-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] return fprintf(stderr, argv[0]); ^ cc1: some warnings being treated as errors # Make sure build succeeds with -Wno-format-security cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wno-format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -o ../build-tree/includes-test-format-security format.c # Skipped SSP buffer size test # Skipped SSP buffer size test cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -c -o ../build-tree/includes-test-all.o hello.c ar r ../build-tree/includes-test-all.a ../build-tree/includes-test-all.o ar: creating ../build-tree/includes-test-all.a readelf -ldrsW ../build-tree/includes-test-all.a File: ../build-tree/includes-test-all.a(includes-test-all.o) There are no program headers in this file. Relocation section '.rela.text' at offset 0x1710 contains 8 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000010 0000000800000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata.str1.8 + 0 0000000000000020 0000000800000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata.str1.8 + 0 0000000000000028 000000150000011b R_AARCH64_CALL26 0000000000000000 snprintf + 0 000000000000002c 0000000800000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata.str1.8 + 8 0000000000000030 0000001400000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 announcement + 0 0000000000000038 0000000800000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata.str1.8 + 8 000000000000003c 0000001400000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 announcement + 0 0000000000000044 000000160000011b R_AARCH64_CALL26 0000000000000000 __printf_chk + 0 Relocation section '.rela.text.startup' at offset 0x17d0 contains 1 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 000000000000000c 000000140000011b R_AARCH64_CALL26 0000000000000000 announcement + 0 Relocation section '.rela.debug_info' at offset 0x17e8 contains 85 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000006 0000000b00000102 R_AARCH64_ABS32 0000000000000000 .debug_abbrev + 0 000000000000000c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 200 0000000000000011 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2aa 0000000000000015 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 7d 0000000000000019 0000000e00000102 R_AARCH64_ABS32 0000000000000000 .debug_ranges + 0 0000000000000025 0000000f00000102 R_AARCH64_ABS32 0000000000000000 .debug_line + 0 000000000000002a 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2d 0000000000000037 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 160 000000000000003e 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 103 0000000000000045 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 21d 000000000000004c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 13e 0000000000000053 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 116 000000000000005a 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 23 0000000000000068 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + c7 000000000000006d 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 253 0000000000000078 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 172 0000000000000085 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 34 0000000000000094 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1c0 0000000000000099 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + d 00000000000000a5 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 53 00000000000000b1 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1a7 00000000000000bd 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 70 00000000000000c9 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 27f 00000000000000d5 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 17c 00000000000000e1 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 45 00000000000000ed 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 236 00000000000000fa 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 5a 0000000000000107 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1b4 0000000000000114 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 29c 0000000000000121 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 25b 000000000000012e 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 16 000000000000013b 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 67 0000000000000148 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 24c 0000000000000155 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 244 0000000000000162 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 271 000000000000016f 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + f7 000000000000017c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + d7 0000000000000189 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 28d 0000000000000196 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 156 00000000000001a3 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + c1 00000000000001b0 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 3d 00000000000001bd 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1dd 00000000000001ca 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1e4 00000000000001d7 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1eb 00000000000001e4 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1f2 00000000000001f1 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1f9 00000000000001fe 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 279 000000000000020b 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 18b 0000000000000219 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2b9 0000000000000220 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 14b 000000000000022c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1d7 0000000000000238 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + f1 0000000000000244 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + e3 0000000000000290 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + b3 0000000000000297 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 122 000000000000029c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + e8 00000000000002c2 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 230 00000000000002cf 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + d0 00000000000002df 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 230 00000000000002ec 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1ca 00000000000002f6 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 000000000000030d 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 139 0000000000000317 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + 0 000000000000032f 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 10 000000000000034c 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 0 0000000000000361 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + 4c 0000000000000366 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2c 000000000000037e 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 0 000000000000039a 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2c 00000000000003b3 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 8 00000000000003bd 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 48 00000000000003ce 0000001400000101 R_AARCH64_ABS64 0000000000000000 announcement + 0 00000000000003e1 0000000800000101 R_AARCH64_ABS64 0000000000000000 .rodata.str1.8 + 8 0000000000000403 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 1c5 000000000000040d 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 0000000000000424 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 111 000000000000042e 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + c2 0000000000000433 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + ae 000000000000043d 0000000c00000102 R_AARCH64_ABS32 0000000000000000 .debug_loc + fb 0000000000000442 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 10 0000000000000456 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 26b 0000000000000461 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 2b2 000000000000046c 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 194 0000000000000472 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + e8 0000000000000490 0000001000000102 R_AARCH64_ABS32 0000000000000000 .debug_str + 0 Relocation section '.rela.debug_loc' at offset 0x1fe0 contains 24 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000000 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000008 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 28 0000000000000013 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 28 000000000000001b 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2b 0000000000000026 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 2b 000000000000002e 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 58 000000000000004c 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + c 0000000000000054 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 18 0000000000000061 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 18 0000000000000069 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 4c 0000000000000074 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 4c 000000000000007c 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 50 0000000000000089 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 50 0000000000000091 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 54 000000000000009c 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 54 00000000000000a4 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 58 00000000000000c2 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 00000000000000ca 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + c 00000000000000d5 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + c 00000000000000dd 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 20 00000000000000fb 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 0000000000000103 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + f 000000000000010e 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + f 0000000000000116 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 20 Relocation section '.rela.debug_aranges' at offset 0x2220 contains 3 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000006 0000000a00000102 R_AARCH64_ABS32 0000000000000000 .debug_info + 0 0000000000000010 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000020 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 Relocation section '.rela.debug_ranges' at offset 0x2268 contains 4 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000000 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000008 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 58 0000000000000010 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 0000000000000018 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 20 Relocation section '.rela.debug_line' at offset 0x22c8 contains 2 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 00000000000000ce 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 00000000000000ef 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 Relocation section '.rela.debug_frame' at offset 0x22f8 contains 4 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000014 0000001200000102 R_AARCH64_ABS32 0000000000000000 .debug_frame + 0 0000000000000018 0000000200000101 R_AARCH64_ABS64 0000000000000000 .text + 0 0000000000000054 0000001200000102 R_AARCH64_ABS32 0000000000000000 .debug_frame + 0 0000000000000058 0000000600000101 R_AARCH64_ABS64 0000000000000000 .text.startup + 0 Symbol table '.symtab' contains 24 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 NOTYPE LOCAL DEFAULT 1 $x 6: 0000000000000000 0 SECTION LOCAL DEFAULT 5 7: 0000000000000000 0 NOTYPE LOCAL DEFAULT 5 $x 8: 0000000000000000 0 SECTION LOCAL DEFAULT 7 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 7 $d 10: 0000000000000000 0 SECTION LOCAL DEFAULT 8 11: 0000000000000000 0 SECTION LOCAL DEFAULT 10 12: 0000000000000000 0 SECTION LOCAL DEFAULT 11 13: 0000000000000000 0 SECTION LOCAL DEFAULT 13 14: 0000000000000000 0 SECTION LOCAL DEFAULT 15 15: 0000000000000000 0 SECTION LOCAL DEFAULT 17 16: 0000000000000000 0 SECTION LOCAL DEFAULT 19 17: 0000000000000010 0 NOTYPE LOCAL DEFAULT 21 $d 18: 0000000000000000 0 SECTION LOCAL DEFAULT 21 19: 0000000000000000 0 SECTION LOCAL DEFAULT 20 20: 0000000000000000 88 FUNC GLOBAL DEFAULT 1 announcement 21: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND snprintf 22: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __printf_chk 23: 0000000000000000 32 FUNC GLOBAL DEFAULT 5 main perl ../build-tree/hardening-check -s ../build-tree/includes-test-all.a ../build-tree/includes-test-all.a: Position Independent Executable: no, object archive (ignored) Stack protected: no, not found! (ignored) Fortify Source functions: yes (some protected functions found) Read-only relocations: no, non-ELF (ignored) Immediate binding: no, non-ELF (ignored) DEB_BUILD_HARDENING=0 cc -c -o ../build-tree/includes-test-none.o hello.c ar r ../build-tree/includes-test-none.a ../build-tree/includes-test-none.o ar: creating ../build-tree/includes-test-none.a readelf -ldrsW ../build-tree/includes-test-none.a File: ../build-tree/includes-test-none.a(includes-test-none.o) There are no program headers in this file. Relocation section '.rela.text' at offset 0x540 contains 9 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000018 0000000500000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata + 0 000000000000001c 0000000500000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata + 0 000000000000002c 0000000a0000011b R_AARCH64_CALL26 0000000000000000 snprintf + 0 0000000000000030 0000000500000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 .rodata + 8 0000000000000034 0000000500000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 .rodata + 8 000000000000003c 0000000900000113 R_AARCH64_ADR_PREL_PG_ 0000000000000000 announcement + 0 0000000000000040 0000000900000115 R_AARCH64_ADD_ABS_LO12 0000000000000000 announcement + 0 0000000000000044 0000000b0000011b R_AARCH64_CALL26 0000000000000000 printf + 0 000000000000006c 000000090000011b R_AARCH64_CALL26 0000000000000000 announcement + 0 Symbol table '.symtab' contains 13 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 84 FUNC GLOBAL DEFAULT 1 announcement 10: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND snprintf 11: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND printf 12: 0000000000000054 48 FUNC GLOBAL DEFAULT 1 main if perl ../build-tree/hardening-check -s ../build-tree/includes-test-none.a; then exit 1; fi ../build-tree/includes-test-none.a: Position Independent Executable: no, object archive (ignored) Stack protected: no, not found! (ignored) Fortify Source functions: no, only unprotected functions found! Read-only relocations: no, non-ELF (ignored) Immediate binding: no, non-ELF (ignored) # Disable PIE cc \ -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 \ -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now \ -o ../build-tree/includes-disabled hello.c if perl ../build-tree/hardening-check -s ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: no, normal executable! Stack protected: no, not found! (ignored) Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Disable fortify cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -U_FORTIFY_SOURCE -o ../build-tree/includes-disabled hello.c if perl ../build-tree/hardening-check -s ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: no, not found! (ignored) Fortify Source functions: no, only unprotected functions found! Read-only relocations: yes Immediate binding: yes # Disable relro cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,norelro -o ../build-tree/includes-disabled hello.c if perl ../build-tree/hardening-check -s ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: no, not found! (ignored) Fortify Source functions: yes (some protected functions found) Read-only relocations: no, not found! Immediate binding: yes # Disable bindnow cc -g -O2 -Wformat -Werror=format-security -fPIE -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,lazy -o ../build-tree/includes-disabled hello.c if perl ../build-tree/hardening-check -s ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: no, not found! (ignored) Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: no, not found! # Disable everything cc \ -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 \ -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -Wl,-z,now \ -fno-stack-protector \ -U_FORTIFY_SOURCE \ -Wno-format-security \ -Wl,-z,norelro \ -Wl,-z,lazy \ -o ../build-tree/includes-disabled hello.c if perl ../build-tree/hardening-check -s ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: no, normal executable! Stack protected: no, not found! (ignored) Fortify Source functions: no, only unprotected functions found! Read-only relocations: no, not found! Immediate binding: no, not found! readelf -ldW ../build-tree/includes-disabled Elf file type is EXEC (Executable file) Entry point 0x400470 There are 6 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x000150 0x000150 R E 0x8 INTERP 0x000190 0x0000000000400190 0x0000000000400190 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x0006cc 0x0006cc R E 0x10000 LOAD 0x0006d0 0x00000000004106d0 0x00000000004106d0 0x000248 0x000250 RW 0x10000 DYNAMIC 0x0006e8 0x00000000004106e8 0x00000000004106e8 0x0001d0 0x0001d0 RW 0x8 NOTE 0x0001ac 0x00000000004001ac 0x00000000004001ac 0x000044 0x000044 R 0x4 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id Dynamic section at offset 0x6e8 contains 24 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x4003c0 0x000000000000000d (FINI) 0x400694 0x0000000000000019 (INIT_ARRAY) 0x4106d0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x4106d8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x000000006ffffef5 (GNU_HASH) 0x4001f0 0x0000000000000005 (STRTAB) 0x4002b8 0x0000000000000006 (SYMTAB) 0x400228 0x000000000000000a (STRSZ) 70 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x4108c8 0x0000000000000002 (PLTRELSZ) 120 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x400348 0x0000000000000007 (RELA) 0x400330 0x0000000000000008 (RELASZ) 24 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x400310 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x4002fe 0x0000000000000000 (NULL) 0x0 make[3]: Leaving directory `/build/buildd/hardening-wrapper-2.5ubuntu1/tests' make[2]: Leaving directory `/build/buildd/hardening-wrapper-2.5ubuntu1/tests' make[1]: Leaving directory `/build/buildd/hardening-wrapper-2.5ubuntu1' /usr/bin/fakeroot debian/rules binary-arch dh binary-arch dh_testroot -a dh_prep -a dh_auto_install -a dh_install -a dh_installdocs -a dh_installchangelogs -a dh_installman -a dh_lintian -a dh_perl -a dh_link -a dh_compress -a dh_fixperms -a dh_strip -a dh_strip debug symbol extraction: all non-arch-all packages for this build platform arm64: hardening-wrapper dh_strip debug symbol extraction: packages to act on: hardening-wrapper dh_strip debug symbol extraction: ignored packages: Using buildid for compat level >= 9 hardening-wrapper is already stripped, ignoring find: `/build/buildd/hardening-wrapper-2.5ubuntu1/debian/hardening-wrapper-dbgsym': No such file or directory dh_makeshlibs -a dh_shlibdeps -a dh_installdeb -a dh_gencontrol -a dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe dh_md5sums -a dh_builddeb -a INFO: pkgstriptranslations version 118 pkgstriptranslations: processing hardening-wrapper (in debian/hardening-wrapper); do_strip: 1, oemstrip: pkgstriptranslations: hardening-wrapper does not contain translations, skipping pkgstriptranslations: no translation files, not creating tarball pkgmaintainermangler: Maintainer field overridden to "Ubuntu Developers " pkgstripfiles: processing control file: debian/hardening-wrapper/DEBIAN/control, package hardening-wrapper, directory debian/hardening-wrapper pkgstripfiles: Truncating usr/share/doc/hardening-wrapper/changelog.gz to topmost ten records pkgstripfiles: PNG optimization for package hardening-wrapper took 0 s dpkg-deb: warning: 'debian/hardening-wrapper/DEBIAN/control' contains user-defined field 'Original-Maintainer' dpkg-deb: warning: ignoring 1 warning about the control file(s) dpkg-deb: building package `hardening-wrapper' in `../hardening-wrapper_2.5ubuntu1_arm64.deb'. dpkg-genchanges -B -mUbuntu Build Daemon >../hardening-wrapper_2.5ubuntu1_arm64.changes dpkg-genchanges: arch-specific upload - not including arch-independent packages dpkg-genchanges: binary-only upload - not including any source code dpkg-source --after-build hardening-wrapper-2.5ubuntu1 dpkg-buildpackage: binary only upload (no source included) ****************************************************************************** Build finished at 20131218-1144 chroot-autobuild/build/buildd/hardening-wrapper_2.5ubuntu1_arm64.deb: new debian package, version 2.0. size 10424 bytes: control archive=1476 bytes. 607 bytes, 15 lines control 834 bytes, 12 lines md5sums 838 bytes, 44 lines * postinst #!/bin/sh 419 bytes, 25 lines * postrm #!/bin/sh 434 bytes, 25 lines * preinst #!/bin/sh Package: hardening-wrapper Version: 2.5ubuntu1 Architecture: arm64 Maintainer: Ubuntu Developers Original-Maintainer: Package Hardening Installed-Size: 72 Depends: gcc | g++, perl Section: devel Priority: optional Multi-Arch: foreign Homepage: http://wiki.debian.org/Hardening Description: Compiler wrapper to enable security hardening flags Replaces gcc, g++, and ld with wrapper scripts that set security hardening compilation flags, as an alternative to changing gcc specs. Enabled when DEB_BUILD_HARDENING=1 is set. chroot-autobuild/build/buildd/hardening-wrapper_2.5ubuntu1_arm64.deb: drwxr-xr-x root/root 0 2013-12-18 11:44 ./ drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/ drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/ drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/doc/ drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/doc/hardening-wrapper/ -rw-r--r-- root/root 64 2011-07-03 20:12 ./usr/share/doc/hardening-wrapper/AUTHORS -rw-r--r-- root/root 2951 2012-12-16 22:58 ./usr/share/doc/hardening-wrapper/README.Debian -rw-r--r-- root/root 18 2011-07-03 20:12 ./usr/share/doc/hardening-wrapper/TODO -rw-r--r-- root/root 1181 2012-03-31 20:48 ./usr/share/doc/hardening-wrapper/copyright -rw-r--r-- root/root 1568 2013-12-18 11:44 ./usr/share/doc/hardening-wrapper/changelog.gz drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/lintian/ drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/lintian/overrides/ -rw-r--r-- root/root 108 2012-03-31 21:39 ./usr/share/lintian/overrides/hardening-wrapper drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/man/ drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/share/man/man1/ -rw-r--r-- root/root 734 2013-12-18 11:44 ./usr/share/man/man1/hardened-ld.1.gz -rw-r--r-- root/root 914 2013-12-18 11:44 ./usr/share/man/man1/hardened-c++.1.gz -rw-r--r-- root/root 911 2013-12-18 11:44 ./usr/share/man/man1/hardened-cc.1.gz drwxr-xr-x root/root 0 2013-12-18 11:44 ./usr/bin/ -rwxr-xr-x root/root 5661 2013-12-18 11:44 ./usr/bin/hardened-cc -rwxr-xr-x root/root 3037 2013-12-18 11:44 ./usr/bin/hardened-ld -rwxr-xr-x root/root 5663 2013-12-18 11:44 ./usr/bin/hardened-c++ lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/share/man/man1/hardening-wrapper.1.gz -> hardened-cc.1.gz lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/gcc-4.4 -> hardened-cc lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/gcc-4.7 -> hardened-cc lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/g++-4.4 -> hardened-c++ lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/gcc-4.9 -> hardened-cc lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/gcc-4.8 -> hardened-cc lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/gcc-4.6 -> hardened-cc lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/g++-4.9 -> hardened-c++ lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/g++-4.8 -> hardened-c++ lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/g++-4.7 -> hardened-c++ lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/ld.bfd -> hardened-ld lrwxrwxrwx root/root 0 2013-12-18 11:44 ./usr/bin/g++-4.6 -> hardened-c++ hardening-wrapper_2.5ubuntu1_arm64.changes: Format: 1.8 Date: Wed, 18 Dec 2013 12:36:36 +0100 Source: hardening-wrapper Binary: hardening-wrapper hardening-includes Architecture: arm64 Version: 2.5ubuntu1 Distribution: trusty-proposed Urgency: medium Maintainer: Ubuntu Build Daemon Changed-By: Matthias Klose Description: hardening-includes - Makefile for enabling compiler flags for security hardening hardening-wrapper - Compiler wrapper to enable security hardening flags Changes: hardening-wrapper (2.5ubuntu1) trusty; urgency=medium . * Merge with Debian; remaining changes: - Don't install a symlink for gold on architectures not having a gold port. - Stop installing links for GCC 4.2, 4.3, 4.5. Checksums-Sha1: f6872a1072c8676257fdb0b9911e7e49d5d2346f 10424 hardening-wrapper_2.5ubuntu1_arm64.deb Checksums-Sha256: 6209c04fffb36dae3830feef9b8240927859e73c3640ebf63e5722ade4ef0983 10424 hardening-wrapper_2.5ubuntu1_arm64.deb Files: 2ffa471b65894117d7d790e18ae0ec1c 10424 devel optional hardening-wrapper_2.5ubuntu1_arm64.deb ****************************************************************************** Built successfully ****************************************************************************** Finished at 20131218-1144 Build needed 00:00:16, 708k disk space RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'PACKAGEBUILD-5361524'] Scanning for processes to kill in build /home/buildd/build-PACKAGEBUILD-5361524/chroot-autobuild... RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'PACKAGEBUILD-5361524'] Unmounting chroot for build PACKAGEBUILD-5361524... RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'PACKAGEBUILD-5361524'] Removing build PACKAGEBUILD-5361524