RUN: /usr/share/launchpad-buildd/slavebin/slave-prep ['slave-prep'] Forking launchpad-buildd slave process... Kernel version: Linux kishi18 3.2.0-67-highbank #101-Ubuntu SMP PREEMPT Tue Jul 15 18:38:06 UTC 2014 armv7l Buildd toolchain package versions: launchpad-buildd_126 python-lpbuildd_126 bzr_2.5.1-0ubuntu2 dpkg-dev_1.16.1.2ubuntu7.6. Syncing the system clock with the buildd NTP service... 30 Apr 17:53:06 ntpdate[30453]: adjust time server 10.211.37.1 offset -0.000884 sec RUN: /usr/share/launchpad-buildd/slavebin/unpack-chroot ['unpack-chroot', 'PACKAGEBUILD-7372880', '/home/buildd/filecache-default/079f1e0b59efb3dc096967eb1b88b447385573d6'] Unpacking chroot for build PACKAGEBUILD-7372880 RUN: /usr/share/launchpad-buildd/slavebin/mount-chroot ['mount-chroot', 'PACKAGEBUILD-7372880'] Mounting chroot for build PACKAGEBUILD-7372880 RUN: /usr/share/launchpad-buildd/slavebin/override-sources-list ['override-sources-list', 'PACKAGEBUILD-7372880', 'deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu precise main', 'deb http://ftpmaster.internal/ubuntu precise main', 'deb http://ftpmaster.internal/ubuntu precise-security main'] Overriding sources.list in build-PACKAGEBUILD-7372880 RUN: /usr/share/launchpad-buildd/slavebin/update-debian-chroot ['update-debian-chroot', 'PACKAGEBUILD-7372880', 'armhf'] Updating debian chroot for build PACKAGEBUILD-7372880 Ign http://ppa.launchpad.net precise InRelease Ign http://ftpmaster.internal precise InRelease Ign http://ftpmaster.internal precise-security InRelease Get:1 http://ppa.launchpad.net precise Release.gpg [316 B] Get:2 http://ppa.launchpad.net precise Release [13.0 kB] Get:3 http://ftpmaster.internal precise Release.gpg [198 B] Get:4 http://ftpmaster.internal precise-security Release.gpg [198 B] Get:5 http://ftpmaster.internal precise Release [49.6 kB] Ign http://ppa.launchpad.net precise Release Get:6 http://ftpmaster.internal precise-security Release [54.3 kB] Get:7 http://ppa.launchpad.net precise/main armhf Packages [22.3 kB] Get:8 http://ppa.launchpad.net precise/main TranslationIndex [202 B] Get:9 http://ppa.launchpad.net precise/main Translation-en [7364 B] Get:10 http://ftpmaster.internal precise/main armhf Packages [1258 kB] Get:11 http://ftpmaster.internal precise/main TranslationIndex [3706 B] Get:12 http://ftpmaster.internal precise-security/main armhf Packages [420 kB] Get:13 http://ftpmaster.internal precise-security/main TranslationIndex [208 B] Get:14 http://ftpmaster.internal precise/main Translation-en [726 kB] Get:15 http://ftpmaster.internal precise-security/main Translation-en [222 kB] Fetched 2776 kB in 3s (736 kB/s) Reading package lists... W: GPG error: http://ppa.launchpad.net precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A6DCF7707EBC211F Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: apt apt-transport-https bash binutils ca-certificates coreutils cpio dpkg dpkg-dev e2fslibs e2fsprogs gnupg gpgv initramfs-tools initramfs-tools-bin libapt-pkg4.12 libc-bin libc-dev-bin libc6 libc6-dev libcomerr2 libcurl3-gnutls libdbus-1-3 libdpkg-perl libdrm-nouveau1a libdrm-radeon1 libdrm2 libelf1 libgcrypt11 libgnutls26 libgssapi-krb5-2 libk5crypto3 libkrb5-3 libkrb5support0 libss2 libssl1.0.0 libtasn1-3 linux-libc-dev multiarch-support openssl perl perl-base perl-modules pkg-create-dbgsym python2.7-minimal tzdata 46 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 32.7 MB of archives. After this operation, 21.5 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! bash dpkg coreutils libc-dev-bin libc6-dev libc-bin libc6 linux-libc-dev tzdata e2fslibs e2fsprogs perl perl-base perl-modules libapt-pkg4.12 gpgv gnupg apt libcomerr2 libss2 libssl1.0.0 libdbus-1-3 libdrm2 libdrm-nouveau1a libdrm-radeon1 libelf1 libgcrypt11 libtasn1-3 libgnutls26 libk5crypto3 libgssapi-krb5-2 libkrb5-3 libkrb5support0 openssl ca-certificates libcurl3-gnutls multiarch-support python2.7-minimal cpio initramfs-tools initramfs-tools-bin apt-transport-https binutils dpkg-dev libdpkg-perl pkg-create-dbgsym Authentication warning overridden. Get:1 http://ftpmaster.internal/ubuntu/ precise-security/main bash armhf 4.2-2ubuntu2.6 [551 kB] Get:2 http://ftpmaster.internal/ubuntu/ precise-security/main dpkg armhf 1.16.1.2ubuntu7.6 [1752 kB] Get:3 http://ftpmaster.internal/ubuntu/ precise-security/main coreutils armhf 8.13-3ubuntu3.3 [1806 kB] Get:4 http://ftpmaster.internal/ubuntu/ precise-security/main libc-dev-bin armhf 2.15-0ubuntu10.11 [74.2 kB] Get:5 http://ftpmaster.internal/ubuntu/ precise-security/main libc6-dev armhf 2.15-0ubuntu10.11 [2128 kB] Get:6 http://ftpmaster.internal/ubuntu/ precise-security/main libc-bin armhf 2.15-0ubuntu10.11 [1020 kB] Get:7 http://ftpmaster.internal/ubuntu/ precise-security/main libc6 armhf 2.15-0ubuntu10.11 [3840 kB] Get:8 http://ftpmaster.internal/ubuntu/ precise-security/main linux-libc-dev armhf 3.2.0-82.119 [831 kB] Get:9 http://ftpmaster.internal/ubuntu/ precise-security/main tzdata all 2015d-0ubuntu0.12.04 [432 kB] Get:10 http://ftpmaster.internal/ubuntu/ precise-security/main e2fslibs armhf 1.42-1ubuntu2.2 [169 kB] Get:11 http://ftpmaster.internal/ubuntu/ precise-security/main e2fsprogs armhf 1.42-1ubuntu2.2 [950 kB] Get:12 http://ftpmaster.internal/ubuntu/ precise-security/main perl armhf 5.14.2-6ubuntu2.4 [3623 kB] Get:13 http://ftpmaster.internal/ubuntu/ precise-security/main perl-base armhf 5.14.2-6ubuntu2.4 [1388 kB] Get:14 http://ftpmaster.internal/ubuntu/ precise-security/main perl-modules all 5.14.2-6ubuntu2.4 [3389 kB] Get:15 http://ftpmaster.internal/ubuntu/ precise-security/main libapt-pkg4.12 armhf 0.8.16~exp12ubuntu10.21 [865 kB] Get:16 http://ftpmaster.internal/ubuntu/ precise-security/main gpgv armhf 1.4.11-3ubuntu2.9 [154 kB] Get:17 http://ftpmaster.internal/ubuntu/ precise-security/main gnupg armhf 1.4.11-3ubuntu2.9 [723 kB] Get:18 http://ftpmaster.internal/ubuntu/ precise-security/main apt armhf 0.8.16~exp12ubuntu10.21 [1062 kB] Get:19 http://ftpmaster.internal/ubuntu/ precise-security/main libcomerr2 armhf 1.42-1ubuntu2.2 [55.8 kB] Get:20 http://ftpmaster.internal/ubuntu/ precise-security/main libss2 armhf 1.42-1ubuntu2.2 [59.7 kB] Get:21 http://ftpmaster.internal/ubuntu/ precise-security/main libssl1.0.0 armhf 1.0.1-4ubuntu5.25 [804 kB] Get:22 http://ftpmaster.internal/ubuntu/ precise-security/main libdbus-1-3 armhf 1.4.18-1ubuntu1.7 [118 kB] Get:23 http://ftpmaster.internal/ubuntu/ precise-security/main libdrm2 armhf 2.4.52-1~precise2 [21.6 kB] Get:24 http://ftpmaster.internal/ubuntu/ precise-security/main libdrm-nouveau1a armhf 2.4.52-1~precise2 [11.5 kB] Get:25 http://ftpmaster.internal/ubuntu/ precise-security/main libdrm-radeon1 armhf 2.4.52-1~precise2 [23.2 kB] Get:26 http://ftpmaster.internal/ubuntu/ precise-security/main libelf1 armhf 0.152-1ubuntu3.1 [42.0 kB] Get:27 http://ftpmaster.internal/ubuntu/ precise-security/main libgcrypt11 armhf 1.5.0-3ubuntu0.4 [272 kB] Get:28 http://ftpmaster.internal/ubuntu/ precise-security/main libtasn1-3 armhf 2.10-1ubuntu1.3 [37.5 kB] Get:29 http://ftpmaster.internal/ubuntu/ precise-security/main libgnutls26 armhf 2.12.14-5ubuntu3.9 [411 kB] Get:30 http://ftpmaster.internal/ubuntu/ precise-security/main libk5crypto3 armhf 1.10+dfsg~beta1-2ubuntu0.6 [79.5 kB] Get:31 http://ftpmaster.internal/ubuntu/ precise-security/main libgssapi-krb5-2 armhf 1.10+dfsg~beta1-2ubuntu0.6 [93.3 kB] Get:32 http://ftpmaster.internal/ubuntu/ precise-security/main libkrb5-3 armhf 1.10+dfsg~beta1-2ubuntu0.6 [292 kB] Get:33 http://ftpmaster.internal/ubuntu/ precise-security/main libkrb5support0 armhf 1.10+dfsg~beta1-2ubuntu0.6 [20.6 kB] Get:34 http://ftpmaster.internal/ubuntu/ precise-security/main openssl armhf 1.0.1-4ubuntu5.25 [519 kB] Get:35 http://ftpmaster.internal/ubuntu/ precise-security/main ca-certificates all 20141019ubuntu0.12.04.1 [207 kB] Get:36 http://ftpmaster.internal/ubuntu/ precise-security/main libcurl3-gnutls armhf 7.22.0-3ubuntu4.14 [202 kB] Get:37 http://ftpmaster.internal/ubuntu/ precise-security/main multiarch-support armhf 2.15-0ubuntu10.11 [4482 B] Get:38 http://ftpmaster.internal/ubuntu/ precise-security/main python2.7-minimal armhf 2.7.3-0ubuntu3.5 [1566 kB] Get:39 http://ftpmaster.internal/ubuntu/ precise-security/main cpio armhf 2.11-7ubuntu3.1 [99.9 kB] Get:40 http://ftpmaster.internal/ubuntu/ precise-security/main initramfs-tools all 0.99ubuntu13.5 [49.0 kB] Get:41 http://ftpmaster.internal/ubuntu/ precise-security/main initramfs-tools-bin armhf 0.99ubuntu13.5 [9206 B] Get:42 http://ftpmaster.internal/ubuntu/ precise-security/main apt-transport-https armhf 0.8.16~exp12ubuntu10.21 [15.2 kB] Get:43 http://ftpmaster.internal/ubuntu/ precise-security/main binutils armhf 2.22-6ubuntu1.2 [2276 kB] Get:44 http://ftpmaster.internal/ubuntu/ precise-security/main dpkg-dev all 1.16.1.2ubuntu7.6 [468 kB] Get:45 http://ftpmaster.internal/ubuntu/ precise-security/main libdpkg-perl all 1.16.1.2ubuntu7.6 [181 kB] Get:46 http://ftpmaster.internal/ubuntu/ precise-security/main pkg-create-dbgsym all 0.50.1 [9512 B] debconf: delaying package configuration, since apt-utils is not installed Fetched 32.7 MB in 5s (5909 kB/s) (Reading database ... 12122 files and directories currently installed.) Preparing to replace bash 4.2-2ubuntu2 (using .../bash_4.2-2ubuntu2.6_armhf.deb) ... Unpacking replacement bash ... Setting up bash (4.2-2ubuntu2.6) ... update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode. (Reading database ... 12122 files and directories currently installed.) Preparing to replace dpkg 1.16.1.2ubuntu7 (using .../dpkg_1.16.1.2ubuntu7.6_armhf.deb) ... Unpacking replacement dpkg ... Setting up dpkg (1.16.1.2ubuntu7.6) ... (Reading database ... 12123 files and directories currently installed.) Preparing to replace coreutils 8.13-3ubuntu3 (using .../coreutils_8.13-3ubuntu3.3_armhf.deb) ... Unpacking replacement coreutils ... Setting up coreutils (8.13-3ubuntu3.3) ... (Reading database ... 12123 files and directories currently installed.) Preparing to replace libc-dev-bin 2.15-0ubuntu10 (using .../libc-dev-bin_2.15-0ubuntu10.11_armhf.deb) ... Unpacking replacement libc-dev-bin ... Preparing to replace libc6-dev 2.15-0ubuntu10 (using .../libc6-dev_2.15-0ubuntu10.11_armhf.deb) ... Unpacking replacement libc6-dev ... Preparing to replace libc-bin 2.15-0ubuntu10 (using .../libc-bin_2.15-0ubuntu10.11_armhf.deb) ... Unpacking replacement libc-bin ... Setting up libc-bin (2.15-0ubuntu10.11) ... (Reading database ... 12122 files and directories currently installed.) Preparing to replace libc6 2.15-0ubuntu10 (using .../libc6_2.15-0ubuntu10.11_armhf.deb) ... Unpacking replacement libc6 ... Setting up libc6 (2.15-0ubuntu10.11) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12122 files and directories currently installed.) Preparing to replace linux-libc-dev 3.2.0-23.36 (using .../linux-libc-dev_3.2.0-82.119_armhf.deb) ... Unpacking replacement linux-libc-dev ... Preparing to replace tzdata 2012b-1 (using .../tzdata_2015d-0ubuntu0.12.04_all.deb) ... Unpacking replacement tzdata ... Setting up tzdata (2015d-0ubuntu0.12.04) ... Current default time zone: 'Etc/UTC' Local time is now: Thu Apr 30 17:53:39 UTC 2015. Universal Time is now: Thu Apr 30 17:53:39 UTC 2015. Run 'dpkg-reconfigure tzdata' if you wish to change it. (Reading database ... 12126 files and directories currently installed.) Preparing to replace e2fslibs 1.42-1ubuntu2 (using .../e2fslibs_1.42-1ubuntu2.2_armhf.deb) ... Unpacking replacement e2fslibs ... Setting up e2fslibs (1.42-1ubuntu2.2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12126 files and directories currently installed.) Preparing to replace e2fsprogs 1.42-1ubuntu2 (using .../e2fsprogs_1.42-1ubuntu2.2_armhf.deb) ... Unpacking replacement e2fsprogs ... Setting up e2fsprogs (1.42-1ubuntu2.2) ... (Reading database ... 12126 files and directories currently installed.) Preparing to replace perl 5.14.2-6ubuntu2 (using .../perl_5.14.2-6ubuntu2.4_armhf.deb) ... Unpacking replacement perl ... Preparing to replace perl-base 5.14.2-6ubuntu2 (using .../perl-base_5.14.2-6ubuntu2.4_armhf.deb) ... Unpacking replacement perl-base ... Setting up perl-base (5.14.2-6ubuntu2.4) ... (Reading database ... 12126 files and directories currently installed.) Preparing to replace perl-modules 5.14.2-6ubuntu2 (using .../perl-modules_5.14.2-6ubuntu2.4_all.deb) ... Unpacking replacement perl-modules ... Preparing to replace libapt-pkg4.12 0.8.16~exp12ubuntu10 (using .../libapt-pkg4.12_0.8.16~exp12ubuntu10.21_armhf.deb) ... Unpacking replacement libapt-pkg4.12 ... Setting up libapt-pkg4.12 (0.8.16~exp12ubuntu10.21) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12126 files and directories currently installed.) Preparing to replace gpgv 1.4.11-3ubuntu2 (using .../gpgv_1.4.11-3ubuntu2.9_armhf.deb) ... Unpacking replacement gpgv ... Setting up gpgv (1.4.11-3ubuntu2.9) ... (Reading database ... 12125 files and directories currently installed.) Preparing to replace gnupg 1.4.11-3ubuntu2 (using .../gnupg_1.4.11-3ubuntu2.9_armhf.deb) ... Unpacking replacement gnupg ... Setting up gnupg (1.4.11-3ubuntu2.9) ... (Reading database ... 12125 files and directories currently installed.) Preparing to replace apt 0.8.16~exp12ubuntu10 (using .../apt_0.8.16~exp12ubuntu10.21_armhf.deb) ... Unpacking replacement apt ... Setting up apt (0.8.16~exp12ubuntu10.21) ... Installing new version of config file /etc/apt/apt.conf.d/01autoremove ... gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key " not changed gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key " not changed gpg: Total number processed: 2 gpg: unchanged: 2 No packages found matching linux-image-[0-9]*. (Reading database ... 12126 files and directories currently installed.) Preparing to replace libcomerr2 1.42-1ubuntu2 (using .../libcomerr2_1.42-1ubuntu2.2_armhf.deb) ... Unpacking replacement libcomerr2 ... Setting up libcomerr2 (1.42-1ubuntu2.2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12126 files and directories currently installed.) Preparing to replace libss2 1.42-1ubuntu2 (using .../libss2_1.42-1ubuntu2.2_armhf.deb) ... Unpacking replacement libss2 ... Setting up libss2 (1.42-1ubuntu2.2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12126 files and directories currently installed.) Preparing to replace libssl1.0.0 1.0.1-4ubuntu3 (using .../libssl1.0.0_1.0.1-4ubuntu5.25_armhf.deb) ... Unpacking replacement libssl1.0.0 ... Setting up libssl1.0.0 (1.0.1-4ubuntu5.25) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 12126 files and directories currently installed.) Preparing to replace libdbus-1-3 1.4.18-1ubuntu1 (using .../libdbus-1-3_1.4.18-1ubuntu1.7_armhf.deb) ... Unpacking replacement libdbus-1-3 ... Preparing to replace libdrm2 2.4.32-1ubuntu1 (using .../libdrm2_2.4.52-1~precise2_armhf.deb) ... Unpacking replacement libdrm2 ... Preparing to replace libdrm-nouveau1a 2.4.32-1ubuntu1 (using .../libdrm-nouveau1a_2.4.52-1~precise2_armhf.deb) ... Unpacking replacement libdrm-nouveau1a ... Preparing to replace libdrm-radeon1 2.4.32-1ubuntu1 (using .../libdrm-radeon1_2.4.52-1~precise2_armhf.deb) ... Unpacking replacement libdrm-radeon1 ... Preparing to replace libelf1 0.152-1ubuntu3 (using .../libelf1_0.152-1ubuntu3.1_armhf.deb) ... Unpacking replacement libelf1 ... Preparing to replace libgcrypt11 1.5.0-3 (using .../libgcrypt11_1.5.0-3ubuntu0.4_armhf.deb) ... Unpacking replacement libgcrypt11 ... Preparing to replace libtasn1-3 2.10-1ubuntu1 (using .../libtasn1-3_2.10-1ubuntu1.3_armhf.deb) ... Unpacking replacement libtasn1-3 ... Preparing to replace libgnutls26 2.12.14-5ubuntu3 (using .../libgnutls26_2.12.14-5ubuntu3.9_armhf.deb) ... Unpacking replacement libgnutls26 ... Preparing to replace libk5crypto3 1.10+dfsg~beta1-2 (using .../libk5crypto3_1.10+dfsg~beta1-2ubuntu0.6_armhf.deb) ... Unpacking replacement libk5crypto3 ... Preparing to replace libgssapi-krb5-2 1.10+dfsg~beta1-2 (using .../libgssapi-krb5-2_1.10+dfsg~beta1-2ubuntu0.6_armhf.deb) ... Unpacking replacement libgssapi-krb5-2 ... Preparing to replace libkrb5-3 1.10+dfsg~beta1-2 (using .../libkrb5-3_1.10+dfsg~beta1-2ubuntu0.6_armhf.deb) ... Unpacking replacement libkrb5-3 ... Preparing to replace libkrb5support0 1.10+dfsg~beta1-2 (using .../libkrb5support0_1.10+dfsg~beta1-2ubuntu0.6_armhf.deb) ... Unpacking replacement libkrb5support0 ... Preparing to replace openssl 1.0.1-4ubuntu3 (using .../openssl_1.0.1-4ubuntu5.25_armhf.deb) ... Unpacking replacement openssl ... Preparing to replace ca-certificates 20111211 (using .../ca-certificates_20141019ubuntu0.12.04.1_all.deb) ... Unpacking replacement ca-certificates ... Preparing to replace libcurl3-gnutls 7.22.0-3ubuntu4 (using .../libcurl3-gnutls_7.22.0-3ubuntu4.14_armhf.deb) ... Unpacking replacement libcurl3-gnutls ... Preparing to replace multiarch-support 2.15-0ubuntu10 (using .../multiarch-support_2.15-0ubuntu10.11_armhf.deb) ... Unpacking replacement multiarch-support ... Setting up multiarch-support (2.15-0ubuntu10.11) ... (Reading database ... 12145 files and directories currently installed.) Preparing to replace python2.7-minimal 2.7.3-0ubuntu3 (using .../python2.7-minimal_2.7.3-0ubuntu3.5_armhf.deb) ... Unpacking replacement python2.7-minimal ... Setting up python2.7-minimal (2.7.3-0ubuntu3.5) ... (Reading database ... 12145 files and directories currently installed.) Preparing to replace cpio 2.11-7ubuntu3 (using .../cpio_2.11-7ubuntu3.1_armhf.deb) ... Unpacking replacement cpio ... Preparing to replace initramfs-tools 0.99ubuntu13 (using .../initramfs-tools_0.99ubuntu13.5_all.deb) ... Unpacking replacement initramfs-tools ... Preparing to replace initramfs-tools-bin 0.99ubuntu13 (using .../initramfs-tools-bin_0.99ubuntu13.5_armhf.deb) ... Unpacking replacement initramfs-tools-bin ... Preparing to replace apt-transport-https 0.8.16~exp12ubuntu10 (using .../apt-transport-https_0.8.16~exp12ubuntu10.21_armhf.deb) ... Unpacking replacement apt-transport-https ... Preparing to replace binutils 2.22-6ubuntu1 (using .../binutils_2.22-6ubuntu1.2_armhf.deb) ... Unpacking replacement binutils ... Preparing to replace dpkg-dev 1.16.1.2ubuntu7 (using .../dpkg-dev_1.16.1.2ubuntu7.6_all.deb) ... Unpacking replacement dpkg-dev ... Preparing to replace libdpkg-perl 1.16.1.2ubuntu7 (using .../libdpkg-perl_1.16.1.2ubuntu7.6_all.deb) ... Unpacking replacement libdpkg-perl ... Preparing to replace pkg-create-dbgsym 0.50 (using .../pkg-create-dbgsym_0.50.1_all.deb) ... Unpacking replacement pkg-create-dbgsym ... Setting up libc-dev-bin (2.15-0ubuntu10.11) ... Setting up linux-libc-dev (3.2.0-82.119) ... Setting up libc6-dev (2.15-0ubuntu10.11) ... Setting up libdbus-1-3 (1.4.18-1ubuntu1.7) ... Setting up libdrm2 (2.4.52-1~precise2) ... Setting up libdrm-nouveau1a (2.4.52-1~precise2) ... Setting up libdrm-radeon1 (2.4.52-1~precise2) ... Setting up libelf1 (0.152-1ubuntu3.1) ... Setting up libgcrypt11 (1.5.0-3ubuntu0.4) ... Setting up libtasn1-3 (2.10-1ubuntu1.3) ... Setting up libgnutls26 (2.12.14-5ubuntu3.9) ... Setting up libkrb5support0 (1.10+dfsg~beta1-2ubuntu0.6) ... Setting up libk5crypto3 (1.10+dfsg~beta1-2ubuntu0.6) ... Setting up libkrb5-3 (1.10+dfsg~beta1-2ubuntu0.6) ... Setting up libgssapi-krb5-2 (1.10+dfsg~beta1-2ubuntu0.6) ... Setting up openssl (1.0.1-4ubuntu5.25) ... Setting up ca-certificates (20141019ubuntu0.12.04.1) ... Updating certificates in /etc/ssl/certs... 38 added, 17 removed; done. Running hooks in /etc/ca-certificates/update.d....done. Setting up libcurl3-gnutls (7.22.0-3ubuntu4.14) ... Setting up cpio (2.11-7ubuntu3.1) ... Setting up initramfs-tools-bin (0.99ubuntu13.5) ... Setting up initramfs-tools (0.99ubuntu13.5) ... update-initramfs: deferring update (trigger activated) Setting up apt-transport-https (0.8.16~exp12ubuntu10.21) ... Setting up binutils (2.22-6ubuntu1.2) ... Setting up pkg-create-dbgsym (0.50.1) ... Setting up perl-modules (5.14.2-6ubuntu2.4) ... Setting up perl (5.14.2-6ubuntu2.4) ... Setting up libdpkg-perl (1.16.1.2ubuntu7.6) ... Setting up dpkg-dev (1.16.1.2ubuntu7.6) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Processing triggers for initramfs-tools ... RUN: /usr/share/launchpad-buildd/slavebin/sbuild-package ['sbuild-package', 'PACKAGEBUILD-7372880', 'armhf', 'precise', '--nolog', '--batch', '--archive=ubuntu', '--dist=precise', '--purpose=PRIMARY', '--architecture=armhf', '--comp=main', 'hardening-wrapper_1.36ubuntu1.1.dsc'] Initiating build PACKAGEBUILD-7372880 with 4 jobs across 4 processor cores. Kernel reported to sbuild: 2.6.42-67-highbank #101-Ubuntu SMP PREEMPT Tue Jul 15 18:38:06 UTC 2014 armv7l Automatic build of hardening-wrapper_1.36ubuntu1.1 on kishi18 by sbuild/armhf 1.170.5 Build started at 20150430-1754 ****************************************************************************** hardening-wrapper_1.36ubuntu1.1.dsc exists in cwd ** Using build dependencies supplied by package: Build-Depends: debhelper (>= 7), perl-base (>= 5.10) Checking for already installed source dependencies... debhelper: missing perl-base: already installed (5.14.2-6ubuntu2.4 >= 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: bsdmainutils dh-apparmor file gettext gettext-base groff-base html2text intltool-debian libcroco3 libgettextpo0 libmagic1 libpipeline1 libunistring0 libxml2 man-db po-debconf Suggested packages: wamerican wordlist whois vacation dh-make gettext-doc groff less www-browser libmail-box-perl Recommended packages: curl wget lynx-cur xml-core libmail-sendmail-perl The following NEW packages will be installed: bsdmainutils debhelper dh-apparmor file gettext gettext-base groff-base html2text intltool-debian libcroco3 libgettextpo0 libmagic1 libpipeline1 libunistring0 libxml2 man-db po-debconf 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. Need to get 5250 kB of archives. After this operation, 15.5 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libpipeline1 libxml2 libcroco3 libunistring0 libgettextpo0 libmagic1 file bsdmainutils gettext-base groff-base man-db html2text gettext intltool-debian po-debconf dh-apparmor debhelper Authentication warning overridden. Get:1 http://ftpmaster.internal/ubuntu/ precise/main libpipeline1 armhf 1.2.1-1 [20.8 kB] Get:2 http://ftpmaster.internal/ubuntu/ precise-security/main libxml2 armhf 2.7.8.dfsg-5.1ubuntu4.11 [549 kB] Get:3 http://ftpmaster.internal/ubuntu/ precise/main libcroco3 armhf 0.6.5-1 [82.1 kB] Get:4 http://ftpmaster.internal/ubuntu/ precise/main libunistring0 armhf 0.9.3-5 [393 kB] Get:5 http://ftpmaster.internal/ubuntu/ precise/main libgettextpo0 armhf 0.18.1.1-5ubuntu3 [99.4 kB] Get:6 http://ftpmaster.internal/ubuntu/ precise-security/main libmagic1 armhf 5.09-2ubuntu0.6 [213 kB] Get:7 http://ftpmaster.internal/ubuntu/ precise-security/main file armhf 5.09-2ubuntu0.6 [19.3 kB] Get:8 http://ftpmaster.internal/ubuntu/ precise/main bsdmainutils armhf 8.2.3ubuntu1 [194 kB] Get:9 http://ftpmaster.internal/ubuntu/ precise/main gettext-base armhf 0.18.1.1-5ubuntu3 [54.7 kB] Get:10 http://ftpmaster.internal/ubuntu/ precise/main groff-base armhf 1.21-7 [921 kB] Get:11 http://ftpmaster.internal/ubuntu/ precise/main man-db armhf 2.6.1-2 [701 kB] Get:12 http://ftpmaster.internal/ubuntu/ precise/main html2text armhf 1.3.2a-15 [85.8 kB] Get:13 http://ftpmaster.internal/ubuntu/ precise/main gettext armhf 0.18.1.1-5ubuntu3 [1050 kB] Get:14 http://ftpmaster.internal/ubuntu/ precise/main intltool-debian all 0.35.0+20060710.1 [31.6 kB] Get:15 http://ftpmaster.internal/ubuntu/ precise/main po-debconf all 1.0.16+nmu2ubuntu1 [210 kB] Get:16 http://ftpmaster.internal/ubuntu/ precise-security/main dh-apparmor all 2.7.102-0ubuntu3.10 [8686 B] Get:17 http://ftpmaster.internal/ubuntu/ precise/main debhelper all 9.20120115ubuntu3 [616 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 5250 kB in 0s (5623 kB/s) Selecting previously unselected package libpipeline1. (Reading database ... 12147 files and directories currently installed.) Unpacking libpipeline1 (from .../libpipeline1_1.2.1-1_armhf.deb) ... Selecting previously unselected package libxml2. Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-5.1ubuntu4.11_armhf.deb) ... Selecting previously unselected package libcroco3. Unpacking libcroco3 (from .../libcroco3_0.6.5-1_armhf.deb) ... Selecting previously unselected package libunistring0. Unpacking libunistring0 (from .../libunistring0_0.9.3-5_armhf.deb) ... Selecting previously unselected package libgettextpo0. Unpacking libgettextpo0 (from .../libgettextpo0_0.18.1.1-5ubuntu3_armhf.deb) ... Selecting previously unselected package libmagic1. Unpacking libmagic1 (from .../libmagic1_5.09-2ubuntu0.6_armhf.deb) ... Selecting previously unselected package file. Unpacking file (from .../file_5.09-2ubuntu0.6_armhf.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_8.2.3ubuntu1_armhf.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-5ubuntu3_armhf.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.21-7_armhf.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.1-2_armhf.deb) ... Selecting previously unselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_armhf.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-5ubuntu3_armhf.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 dh-apparmor. Unpacking dh-apparmor (from .../dh-apparmor_2.7.102-0ubuntu3.10_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_9.20120115ubuntu3_all.deb) ... Setting up libpipeline1 (1.2.1-1) ... Setting up libxml2 (2.7.8.dfsg-5.1ubuntu4.11) ... Setting up libcroco3 (0.6.5-1) ... Setting up libunistring0 (0.9.3-5) ... Setting up libgettextpo0 (0.18.1.1-5ubuntu3) ... Setting up libmagic1 (5.09-2ubuntu0.6) ... Setting up file (5.09-2ubuntu0.6) ... Setting up bsdmainutils (8.2.3ubuntu1) ... 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 gettext-base (0.18.1.1-5ubuntu3) ... Setting up groff-base (1.21-7) ... Setting up man-db (2.6.1-2) ... Building database of manual pages ... Setting up html2text (1.3.2a-15) ... Setting up gettext (0.18.1.1-5ubuntu3) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2ubuntu1) ... Setting up dh-apparmor (2.7.102-0ubuntu3.10) ... Setting up debhelper (9.20120115ubuntu3) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Checking correctness of source dependencies... Toolchain package versions: libc6-dev_2.15-0ubuntu10.11 make_3.81-8.1ubuntu1 dpkg-dev_1.16.1.2ubuntu7.6 gcc-4.6_4.6.3-1ubuntu5 g++-4.6_4.6.3-1ubuntu5 binutils_2.22-6ubuntu1.2 libstdc++6-4.6-dev_4.6.3-1ubuntu5 libstdc++6_4.6.3-1ubuntu5 ------------------------------------------------------------------------------ dpkg-source: warning: -sn is not a valid option for Dpkg::Source::Package::V3::native gpgv: Signature made Thu Apr 30 17:50:14 2015 UTC using RSA key ID D5946E0F gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./hardening-wrapper_1.36ubuntu1.1.dsc dpkg-source: info: extracting hardening-wrapper in hardening-wrapper-1.36ubuntu1.1 dpkg-source: info: unpacking hardening-wrapper_1.36ubuntu1.1.tar.xz dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2 dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro dpkg-buildpackage: source package hardening-wrapper dpkg-buildpackage: source version 1.36ubuntu1.1 dpkg-source --before-build hardening-wrapper-1.36ubuntu1.1 dpkg-buildpackage: host architecture armhf /usr/bin/fakeroot debian/rules clean dh_testdir dh_testroot rm -f build-stamp test-stamp rm -rf build-tree rm -f hardened-c++.1 hardening-wrapper.1 hardening-check.1 dh_clean debian/rules build # Building dh_testdir mkdir -p build-tree install hardened-cc hardened-ld build-tree # Set defaults, based on OS and ARCH perl -pi -e 's/ #OS#/ '"linux"'/; s/ #ARCH#/ '"armhf"'/;' build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_PIE'}=1;/default{'DEB_BUILD_HARDENING_PIE'}=1;/;" build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_STACKPROTECTOR'}=1;/default{'DEB_BUILD_HARDENING_STACKPROTECTOR'}=1;/;" build-tree/hardened-cc build-tree/hardened-ld # Duplicate cc wrapper to c++ cp 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++ # Set up man pages ln -sf hardened-cc.1 hardening-wrapper.1 cp hardened-cc.1 hardened-c++.1 perl -pi -e 's/hardened-cc/hardened-c++/g; s/gcc/g++/g;' hardened-c++.1 pod2man hardening-check > hardening-check.1 # Done building touch build-stamp make -C tests check make[1]: Entering directory `/build/buildd/hardening-wrapper-1.36ubuntu1.1/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 (0x8461) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x400406b1) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x400266b1) make -f Makefile.wrapper check make[2]: Entering directory `/build/buildd/hardening-wrapper-1.36ubuntu1.1/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.6 -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 0x83e9 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x00056c 0x0000856c 0x0000856c 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00008034 0x00008034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00008154 0x00008154 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00008000 0x00008000 0x00578 0x00578 R E 0x8000 LOAD 0x000f04 0x00010f04 0x00010f04 0x0012c 0x00134 RW 0x8000 DYNAMIC 0x000f10 0x00010f10 0x00010f10 0x000f0 0x000f0 RW 0x4 NOTE 0x000170 0x00008170 0x00008170 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000f04 0x00010f04 0x00010f04 0x000fc 0x000fc R 0x1 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 08 .init_array .fini_array .jcr .dynamic Dynamic section at offset 0xf10 contains 25 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3] 0x0000000c (INIT) 0x837d 0x0000000d (FINI) 0x854d 0x00000019 (INIT_ARRAY) 0x10f04 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x10f08 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x81b4 0x00000005 (STRTAB) 0x8270 0x00000006 (SYMTAB) 0x81f0 0x0000000a (STRSZ) 124 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x11000 0x00000002 (PLTRELSZ) 48 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x834c 0x00000011 (REL) 0x833c 0x00000012 (RELSZ) 16 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x6ffffffe (VERNEED) 0x82fc 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x82ec 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x33c contains 2 entries: Offset Info Type Sym. Value Symbol's Name 00011024 00000115 R_ARM_GLOB_DAT 00000000 __gmon_start__ 00011030 00000214 R_ARM_COPY 00011030 __stack_chk_guard Relocation section '.rel.plt' at offset 0x34c contains 6 entries: Offset Info Type Sym. Value Symbol's Name 0001100c 00000316 R_ARM_JUMP_SLOT 0000839c printf 00011010 00000616 R_ARM_JUMP_SLOT 000083a8 __stack_chk_fail 00011014 00000716 R_ARM_JUMP_SLOT 000083b4 __libc_start_main 00011018 00000116 R_ARM_JUMP_SLOT 00000000 __gmon_start__ 0001101c 00000416 R_ARM_JUMP_SLOT 000083d0 snprintf 00011020 00000516 R_ARM_JUMP_SLOT 000083dc abort Symbol table '.dynsym' contains 8 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 2: 00011030 4 OBJECT GLOBAL DEFAULT 24 __stack_chk_guard@GLIBC_2.4 (3) 3: 0000839c 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.4 (2) 4: 000083d0 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 5: 000083dc 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2) 6: 000083a8 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 7: 000083b4 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2) Symbol table '.symtab' contains 101 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00008154 0 SECTION LOCAL DEFAULT 1 2: 00008170 0 SECTION LOCAL DEFAULT 2 3: 00008190 0 SECTION LOCAL DEFAULT 3 4: 000081b4 0 SECTION LOCAL DEFAULT 4 5: 000081f0 0 SECTION LOCAL DEFAULT 5 6: 00008270 0 SECTION LOCAL DEFAULT 6 7: 000082ec 0 SECTION LOCAL DEFAULT 7 8: 000082fc 0 SECTION LOCAL DEFAULT 8 9: 0000833c 0 SECTION LOCAL DEFAULT 9 10: 0000834c 0 SECTION LOCAL DEFAULT 10 11: 0000837c 0 SECTION LOCAL DEFAULT 11 12: 00008388 0 SECTION LOCAL DEFAULT 12 13: 000083e8 0 SECTION LOCAL DEFAULT 13 14: 0000854c 0 SECTION LOCAL DEFAULT 14 15: 00008554 0 SECTION LOCAL DEFAULT 15 16: 0000856c 0 SECTION LOCAL DEFAULT 16 17: 00008574 0 SECTION LOCAL DEFAULT 17 18: 00010f04 0 SECTION LOCAL DEFAULT 18 19: 00010f08 0 SECTION LOCAL DEFAULT 19 20: 00010f0c 0 SECTION LOCAL DEFAULT 20 21: 00010f10 0 SECTION LOCAL DEFAULT 21 22: 00011000 0 SECTION LOCAL DEFAULT 22 23: 00011028 0 SECTION LOCAL DEFAULT 23 24: 00011030 0 SECTION LOCAL DEFAULT 24 25: 00000000 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00008170 0 NOTYPE LOCAL DEFAULT 2 $d 28: 000083e8 0 NOTYPE LOCAL DEFAULT 13 $t 29: 0000856c 0 NOTYPE LOCAL DEFAULT 16 $d 30: 00008412 0 NOTYPE LOCAL DEFAULT 13 $d 31: 00008554 0 NOTYPE LOCAL DEFAULT 15 $d 32: 00011028 0 NOTYPE LOCAL DEFAULT 23 $d 33: 00008420 0 NOTYPE LOCAL DEFAULT 13 $t 34: 00008421 0 FUNC LOCAL DEFAULT 13 call_gmon_start 35: 00008430 0 NOTYPE LOCAL DEFAULT 13 $d 36: 0000837c 0 NOTYPE LOCAL DEFAULT 11 $t 37: 0000854c 0 NOTYPE LOCAL DEFAULT 14 $t 38: 00008384 0 NOTYPE LOCAL DEFAULT 11 $t 39: 00008550 0 NOTYPE LOCAL DEFAULT 14 $t 40: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 41: 00010f0c 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__ 42: 0001102c 0 NOTYPE LOCAL DEFAULT 23 $d 43: 00008438 0 NOTYPE LOCAL DEFAULT 13 $t 44: 00008439 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 45: 00008444 0 NOTYPE LOCAL DEFAULT 13 $d 46: 00011034 1 OBJECT LOCAL DEFAULT 24 completed.6152 47: 00010f08 0 NOTYPE LOCAL DEFAULT 19 $d 48: 00010f08 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 49: 00008448 0 NOTYPE LOCAL DEFAULT 13 $t 50: 00008449 0 FUNC LOCAL DEFAULT 13 frame_dummy 51: 00008458 0 NOTYPE LOCAL DEFAULT 13 $d 52: 00010f04 0 NOTYPE LOCAL DEFAULT 18 $d 53: 00010f04 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 54: 00011034 0 NOTYPE LOCAL DEFAULT 24 $d 55: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 56: 00008558 0 NOTYPE LOCAL DEFAULT 15 $d 57: 00008460 0 NOTYPE LOCAL DEFAULT 13 $t 58: 00008504 0 NOTYPE LOCAL DEFAULT 13 $t 59: 00008540 0 NOTYPE LOCAL DEFAULT 13 $d 60: 00008548 0 NOTYPE LOCAL DEFAULT 13 $t 61: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 62: 00008574 0 NOTYPE LOCAL DEFAULT 17 $d 63: 00008574 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 64: 00010f0c 0 NOTYPE LOCAL DEFAULT 20 $d 65: 00010f0c 0 OBJECT LOCAL DEFAULT 20 __JCR_END__ 66: 00010f08 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 67: 00010f10 0 OBJECT LOCAL DEFAULT 21 _DYNAMIC 68: 00010f04 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 69: 00011000 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_ 70: 00008388 0 NOTYPE LOCAL DEFAULT 12 $a 71: 00008398 0 NOTYPE LOCAL DEFAULT 12 $d 72: 0000839c 0 NOTYPE LOCAL DEFAULT 12 $a 73: 000083c0 0 NOTYPE LOCAL DEFAULT 12 $t 74: 000083c4 0 NOTYPE LOCAL DEFAULT 12 $a 75: 00008549 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 76: 00011028 0 NOTYPE WEAK DEFAULT 23 data_start 77: 0000839c 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.4 78: 00011030 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 79: 00011030 4 OBJECT GLOBAL DEFAULT 24 __stack_chk_guard@@GLIBC_2.4 80: 00011038 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 81: 00011030 0 NOTYPE GLOBAL DEFAULT ABS _edata 82: 0000854d 0 FUNC GLOBAL DEFAULT 14 _fini 83: 00011038 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 84: 000083a8 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 85: 00011028 0 NOTYPE GLOBAL DEFAULT 23 __data_start 86: 000083b4 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.4 87: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 88: 0001102c 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 89: 00008461 124 FUNC GLOBAL DEFAULT 13 announcement 90: 00008554 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 91: 00008505 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 92: 000083d0 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 93: 00011038 0 NOTYPE GLOBAL DEFAULT ABS _end 94: 000083e9 0 FUNC GLOBAL DEFAULT 13 _start 95: 00011038 0 NOTYPE GLOBAL DEFAULT ABS __end__ 96: 00011030 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 97: 000084dd 40 FUNC GLOBAL DEFAULT 13 main 98: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 99: 000083dc 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4 100: 0000837d 0 FUNC GLOBAL DEFAULT 11 _init ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0x8461) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-compiled hello.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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 0x639 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x0007c8 0x000007c8 0x000007c8 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00000000 0x00000000 0x007d4 0x007d4 R E 0x8000 LOAD 0x000f04 0x00008f04 0x00008f04 0x00148 0x0014c RW 0x8000 DYNAMIC 0x000f10 0x00008f10 0x00008f10 0x000f0 0x000f0 RW 0x4 NOTE 0x000170 0x00000170 0x00000170 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000f04 0x00008f04 0x00008f04 0x000fc 0x000fc R 0x1 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 08 .init_array .fini_array .jcr .dynamic Dynamic section at offset 0xf10 contains 26 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3] 0x0000000c (INIT) 0x5ad 0x0000000d (FINI) 0x7a9 0x00000019 (INIT_ARRAY) 0x8f04 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x8f08 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1b4 0x00000005 (STRTAB) 0x390 0x00000006 (SYMTAB) 0x210 0x0000000a (STRSZ) 290 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x9000 0x00000002 (PLTRELSZ) 56 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x574 0x00000011 (REL) 0x524 0x00000012 (RELSZ) 80 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x6ffffffe (VERNEED) 0x4e4 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x4b2 0x6ffffffa (RELCOUNT) 6 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x524 contains 10 entries: Offset Info Type Sym. Value Symbol's Name 00008f04 00000017 R_ARM_RELATIVE 00008f08 00000017 R_ARM_RELATIVE 00009028 00000017 R_ARM_RELATIVE 00009038 00000017 R_ARM_RELATIVE 0000903c 00000017 R_ARM_RELATIVE 00009048 00000017 R_ARM_RELATIVE 0000902c 00000315 R_ARM_GLOB_DAT 00000000 __cxa_finalize 00009030 00000415 R_ARM_GLOB_DAT 00000000 __stack_chk_guard 00009034 00000715 R_ARM_GLOB_DAT 00000000 __gmon_start__ 00009040 00000a15 R_ARM_GLOB_DAT 00000000 _Jv_RegisterClasses Relocation section '.rel.plt' at offset 0x574 contains 7 entries: Offset Info Type Sym. Value Symbol's Name 0000900c 00000316 R_ARM_JUMP_SLOT 00000000 __cxa_finalize 00009010 00000516 R_ARM_JUMP_SLOT 00000000 __stack_chk_fail 00009014 00000616 R_ARM_JUMP_SLOT 00000000 __libc_start_main 00009018 00000716 R_ARM_JUMP_SLOT 00000000 __gmon_start__ 0000901c 00000816 R_ARM_JUMP_SLOT 00000000 snprintf 00009020 00000916 R_ARM_JUMP_SLOT 00000000 __printf_chk 00009024 00000b16 R_ARM_JUMP_SLOT 00000000 abort Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00008f0c 0 SECTION LOCAL DEFAULT 20 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.4 (2) 4: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.4 (3) 5: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 6: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2) 7: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 8: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 9: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 10: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 00000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2) 12: 00009050 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 13: 0000904c 0 NOTYPE GLOBAL DEFAULT ABS _edata 14: 00009044 0 NOTYPE GLOBAL DEFAULT 23 __data_start 15: 00009050 0 NOTYPE GLOBAL DEFAULT ABS _end 16: 00009050 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 17: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 0000904c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 20: 00000625 18 FUNC GLOBAL DEFAULT 13 main 21: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 0000904c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 23: 00009050 0 NOTYPE GLOBAL DEFAULT ABS __end__ Symbol table '.symtab' contains 113 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000170 0 SECTION LOCAL DEFAULT 2 3: 00000190 0 SECTION LOCAL DEFAULT 3 4: 000001b4 0 SECTION LOCAL DEFAULT 4 5: 00000210 0 SECTION LOCAL DEFAULT 5 6: 00000390 0 SECTION LOCAL DEFAULT 6 7: 000004b2 0 SECTION LOCAL DEFAULT 7 8: 000004e4 0 SECTION LOCAL DEFAULT 8 9: 00000524 0 SECTION LOCAL DEFAULT 9 10: 00000574 0 SECTION LOCAL DEFAULT 10 11: 000005ac 0 SECTION LOCAL DEFAULT 11 12: 000005b8 0 SECTION LOCAL DEFAULT 12 13: 00000624 0 SECTION LOCAL DEFAULT 13 14: 000007a8 0 SECTION LOCAL DEFAULT 14 15: 000007b0 0 SECTION LOCAL DEFAULT 15 16: 000007c8 0 SECTION LOCAL DEFAULT 16 17: 000007d0 0 SECTION LOCAL DEFAULT 17 18: 00008f04 0 SECTION LOCAL DEFAULT 18 19: 00008f08 0 SECTION LOCAL DEFAULT 19 20: 00008f0c 0 SECTION LOCAL DEFAULT 20 21: 00008f10 0 SECTION LOCAL DEFAULT 21 22: 00009000 0 SECTION LOCAL DEFAULT 22 23: 00009044 0 SECTION LOCAL DEFAULT 23 24: 0000904c 0 SECTION LOCAL DEFAULT 24 25: 00000000 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00000000 0 SECTION LOCAL DEFAULT 28 29: 00000000 0 SECTION LOCAL DEFAULT 29 30: 00000000 0 SECTION LOCAL DEFAULT 30 31: 00000000 0 SECTION LOCAL DEFAULT 31 32: 00000000 0 SECTION LOCAL DEFAULT 32 33: 00000000 0 SECTION LOCAL DEFAULT 33 34: 00000000 0 SECTION LOCAL DEFAULT 34 35: 00000170 0 NOTYPE LOCAL DEFAULT 2 $d 36: 00000638 0 NOTYPE LOCAL DEFAULT 13 $t 37: 00000678 0 NOTYPE LOCAL DEFAULT 13 $d 38: 000007c8 0 NOTYPE LOCAL DEFAULT 16 $d 39: 000007b0 0 NOTYPE LOCAL DEFAULT 15 $d 40: 00009044 0 NOTYPE LOCAL DEFAULT 23 $d 41: 00000688 0 NOTYPE LOCAL DEFAULT 13 $t 42: 00000689 0 FUNC LOCAL DEFAULT 13 call_gmon_start 43: 00000698 0 NOTYPE LOCAL DEFAULT 13 $d 44: 000005ac 0 NOTYPE LOCAL DEFAULT 11 $t 45: 000007a8 0 NOTYPE LOCAL DEFAULT 14 $t 46: 000005b4 0 NOTYPE LOCAL DEFAULT 11 $t 47: 000007ac 0 NOTYPE LOCAL DEFAULT 14 $t 48: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 49: 00000700 0 NOTYPE LOCAL DEFAULT 13 $t 50: 0000074c 0 NOTYPE LOCAL DEFAULT 13 $d 51: 00000624 0 NOTYPE LOCAL DEFAULT 13 $t 52: 000007b4 0 NOTYPE LOCAL DEFAULT 15 $d 53: 00000010 0 NOTYPE LOCAL DEFAULT 31 $d 54: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 55: 00008f0c 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__ 56: 00009048 0 NOTYPE LOCAL DEFAULT 23 $d 57: 000006a0 0 NOTYPE LOCAL DEFAULT 13 $t 58: 000006a1 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 59: 000006c8 0 NOTYPE LOCAL DEFAULT 13 $d 60: 0000904c 1 OBJECT LOCAL DEFAULT 24 completed.6152 61: 00008f08 0 NOTYPE LOCAL DEFAULT 19 $d 62: 00008f08 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 63: 000006dc 0 NOTYPE LOCAL DEFAULT 13 $t 64: 000006dd 0 FUNC LOCAL DEFAULT 13 frame_dummy 65: 000006f4 0 NOTYPE LOCAL DEFAULT 13 $d 66: 00008f04 0 NOTYPE LOCAL DEFAULT 18 $d 67: 00008f04 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 68: 0000904c 0 NOTYPE LOCAL DEFAULT 24 $d 69: 00000760 0 NOTYPE LOCAL DEFAULT 13 $t 70: 0000079c 0 NOTYPE LOCAL DEFAULT 13 $d 71: 000007a4 0 NOTYPE LOCAL DEFAULT 13 $t 72: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 73: 000007d0 0 NOTYPE LOCAL DEFAULT 17 $d 74: 000007d0 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 75: 00008f0c 0 NOTYPE LOCAL DEFAULT 20 $d 76: 00008f0c 0 OBJECT LOCAL DEFAULT 20 __JCR_END__ 77: 00008f08 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 78: 00009048 0 OBJECT LOCAL DEFAULT 23 __dso_handle 79: 00008f10 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 80: 00008f04 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 81: 00009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 82: 000005b8 0 NOTYPE LOCAL DEFAULT 12 $a 83: 000005c8 0 NOTYPE LOCAL DEFAULT 12 $d 84: 000005cc 0 NOTYPE LOCAL DEFAULT 12 $a 85: 000005f0 0 NOTYPE LOCAL DEFAULT 12 $t 86: 000005f4 0 NOTYPE LOCAL DEFAULT 12 $a 87: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 88: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.4 89: 00009044 0 NOTYPE WEAK DEFAULT 23 data_start 90: 0000904c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 91: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@@GLIBC_2.4 92: 00009050 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 93: 0000904c 0 NOTYPE GLOBAL DEFAULT ABS _edata 94: 000007a9 0 FUNC GLOBAL DEFAULT 14 _fini 95: 00009050 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 96: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 97: 00009044 0 NOTYPE GLOBAL DEFAULT 23 __data_start 98: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.4 99: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 100: 00000701 96 FUNC GLOBAL DEFAULT 13 announcement 101: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 102: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 103: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 104: 00009050 0 NOTYPE GLOBAL DEFAULT ABS _end 105: 00000639 0 FUNC GLOBAL DEFAULT 13 _start 106: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 107: 00009050 0 NOTYPE GLOBAL DEFAULT ABS __end__ 108: 0000904c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 109: 00000625 18 FUNC GLOBAL DEFAULT 13 main 110: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 111: 00000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4 112: 000005ad 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 (0x400c5701) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x4002e701) # 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 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-linked hello.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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 --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -z relro -o ../build-tree/wrapper-test-linked /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtbeginS.o -L../build-tree -L/usr/lib/gcc/arm-linux-gnueabihf/4.6 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../.. -Bsymbolic-functions -z relro /tmp/ccBn5ISb.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is DYN (Shared object file) Entry point 0x639 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x0007c8 0x000007c8 0x000007c8 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00000000 0x00000000 0x007d4 0x007d4 R E 0x8000 LOAD 0x000eb0 0x00008eb0 0x00008eb0 0x00158 0x0015c RW 0x8000 DYNAMIC 0x000ebc 0x00008ebc 0x00008ebc 0x00100 0x00100 RW 0x4 NOTE 0x000170 0x00000170 0x00000170 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000eb0 0x00008eb0 0x00008eb0 0x00150 0x00150 R 0x1 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 08 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xebc contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3] 0x0000000c (INIT) 0x5ad 0x0000000d (FINI) 0x7a9 0x00000019 (INIT_ARRAY) 0x8eb0 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x8eb4 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1b4 0x00000005 (STRTAB) 0x390 0x00000006 (SYMTAB) 0x210 0x0000000a (STRSZ) 290 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x8fbc 0x00000002 (PLTRELSZ) 56 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x574 0x00000011 (REL) 0x524 0x00000012 (RELSZ) 80 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW 0x6ffffffe (VERNEED) 0x4e4 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x4b2 0x6ffffffa (RELCOUNT) 6 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x524 contains 10 entries: Offset Info Type Sym. Value Symbol's Name 00008eb0 00000017 R_ARM_RELATIVE 00008eb4 00000017 R_ARM_RELATIVE 00008fe4 00000017 R_ARM_RELATIVE 00008ff4 00000017 R_ARM_RELATIVE 00008ff8 00000017 R_ARM_RELATIVE 00009004 00000017 R_ARM_RELATIVE 00008fe8 00000315 R_ARM_GLOB_DAT 00000000 __cxa_finalize 00008fec 00000415 R_ARM_GLOB_DAT 00000000 __stack_chk_guard 00008ff0 00000715 R_ARM_GLOB_DAT 00000000 __gmon_start__ 00008ffc 00000a15 R_ARM_GLOB_DAT 00000000 _Jv_RegisterClasses Relocation section '.rel.plt' at offset 0x574 contains 7 entries: Offset Info Type Sym. Value Symbol's Name 00008fc8 00000316 R_ARM_JUMP_SLOT 00000000 __cxa_finalize 00008fcc 00000516 R_ARM_JUMP_SLOT 00000000 __stack_chk_fail 00008fd0 00000616 R_ARM_JUMP_SLOT 00000000 __libc_start_main 00008fd4 00000716 R_ARM_JUMP_SLOT 00000000 __gmon_start__ 00008fd8 00000816 R_ARM_JUMP_SLOT 00000000 snprintf 00008fdc 00000916 R_ARM_JUMP_SLOT 00000000 __printf_chk 00008fe0 00000b16 R_ARM_JUMP_SLOT 00000000 abort Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00008eb8 0 SECTION LOCAL DEFAULT 20 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.4 (2) 4: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.4 (3) 5: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 6: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2) 7: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 8: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 9: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 10: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 00000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2) 12: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 13: 00009008 0 NOTYPE GLOBAL DEFAULT ABS _edata 14: 00009000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 15: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _end 16: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 17: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 20: 00000625 18 FUNC GLOBAL DEFAULT 13 main 21: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 23: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __end__ Symbol table '.symtab' contains 113 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000170 0 SECTION LOCAL DEFAULT 2 3: 00000190 0 SECTION LOCAL DEFAULT 3 4: 000001b4 0 SECTION LOCAL DEFAULT 4 5: 00000210 0 SECTION LOCAL DEFAULT 5 6: 00000390 0 SECTION LOCAL DEFAULT 6 7: 000004b2 0 SECTION LOCAL DEFAULT 7 8: 000004e4 0 SECTION LOCAL DEFAULT 8 9: 00000524 0 SECTION LOCAL DEFAULT 9 10: 00000574 0 SECTION LOCAL DEFAULT 10 11: 000005ac 0 SECTION LOCAL DEFAULT 11 12: 000005b8 0 SECTION LOCAL DEFAULT 12 13: 00000624 0 SECTION LOCAL DEFAULT 13 14: 000007a8 0 SECTION LOCAL DEFAULT 14 15: 000007b0 0 SECTION LOCAL DEFAULT 15 16: 000007c8 0 SECTION LOCAL DEFAULT 16 17: 000007d0 0 SECTION LOCAL DEFAULT 17 18: 00008eb0 0 SECTION LOCAL DEFAULT 18 19: 00008eb4 0 SECTION LOCAL DEFAULT 19 20: 00008eb8 0 SECTION LOCAL DEFAULT 20 21: 00008ebc 0 SECTION LOCAL DEFAULT 21 22: 00008fbc 0 SECTION LOCAL DEFAULT 22 23: 00009000 0 SECTION LOCAL DEFAULT 23 24: 00009008 0 SECTION LOCAL DEFAULT 24 25: 00000000 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00000000 0 SECTION LOCAL DEFAULT 28 29: 00000000 0 SECTION LOCAL DEFAULT 29 30: 00000000 0 SECTION LOCAL DEFAULT 30 31: 00000000 0 SECTION LOCAL DEFAULT 31 32: 00000000 0 SECTION LOCAL DEFAULT 32 33: 00000000 0 SECTION LOCAL DEFAULT 33 34: 00000000 0 SECTION LOCAL DEFAULT 34 35: 00000170 0 NOTYPE LOCAL DEFAULT 2 $d 36: 00000638 0 NOTYPE LOCAL DEFAULT 13 $t 37: 00000678 0 NOTYPE LOCAL DEFAULT 13 $d 38: 000007c8 0 NOTYPE LOCAL DEFAULT 16 $d 39: 000007b0 0 NOTYPE LOCAL DEFAULT 15 $d 40: 00009000 0 NOTYPE LOCAL DEFAULT 23 $d 41: 00000688 0 NOTYPE LOCAL DEFAULT 13 $t 42: 00000689 0 FUNC LOCAL DEFAULT 13 call_gmon_start 43: 00000698 0 NOTYPE LOCAL DEFAULT 13 $d 44: 000005ac 0 NOTYPE LOCAL DEFAULT 11 $t 45: 000007a8 0 NOTYPE LOCAL DEFAULT 14 $t 46: 000005b4 0 NOTYPE LOCAL DEFAULT 11 $t 47: 000007ac 0 NOTYPE LOCAL DEFAULT 14 $t 48: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 49: 00000700 0 NOTYPE LOCAL DEFAULT 13 $t 50: 0000074c 0 NOTYPE LOCAL DEFAULT 13 $d 51: 00000624 0 NOTYPE LOCAL DEFAULT 13 $t 52: 000007b4 0 NOTYPE LOCAL DEFAULT 15 $d 53: 00000010 0 NOTYPE LOCAL DEFAULT 31 $d 54: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 55: 00008eb8 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__ 56: 00009004 0 NOTYPE LOCAL DEFAULT 23 $d 57: 000006a0 0 NOTYPE LOCAL DEFAULT 13 $t 58: 000006a1 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 59: 000006c8 0 NOTYPE LOCAL DEFAULT 13 $d 60: 00009008 1 OBJECT LOCAL DEFAULT 24 completed.6152 61: 00008eb4 0 NOTYPE LOCAL DEFAULT 19 $d 62: 00008eb4 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 63: 000006dc 0 NOTYPE LOCAL DEFAULT 13 $t 64: 000006dd 0 FUNC LOCAL DEFAULT 13 frame_dummy 65: 000006f4 0 NOTYPE LOCAL DEFAULT 13 $d 66: 00008eb0 0 NOTYPE LOCAL DEFAULT 18 $d 67: 00008eb0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 68: 00009008 0 NOTYPE LOCAL DEFAULT 24 $d 69: 00000760 0 NOTYPE LOCAL DEFAULT 13 $t 70: 0000079c 0 NOTYPE LOCAL DEFAULT 13 $d 71: 000007a4 0 NOTYPE LOCAL DEFAULT 13 $t 72: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 73: 000007d0 0 NOTYPE LOCAL DEFAULT 17 $d 74: 000007d0 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 75: 00008eb8 0 NOTYPE LOCAL DEFAULT 20 $d 76: 00008eb8 0 OBJECT LOCAL DEFAULT 20 __JCR_END__ 77: 00008eb4 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 78: 00009004 0 OBJECT LOCAL DEFAULT 23 __dso_handle 79: 00008ebc 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 80: 00008eb0 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 81: 00008fbc 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 82: 000005b8 0 NOTYPE LOCAL DEFAULT 12 $a 83: 000005c8 0 NOTYPE LOCAL DEFAULT 12 $d 84: 000005cc 0 NOTYPE LOCAL DEFAULT 12 $a 85: 000005f0 0 NOTYPE LOCAL DEFAULT 12 $t 86: 000005f4 0 NOTYPE LOCAL DEFAULT 12 $a 87: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 88: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.4 89: 00009000 0 NOTYPE WEAK DEFAULT 23 data_start 90: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 91: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@@GLIBC_2.4 92: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 93: 00009008 0 NOTYPE GLOBAL DEFAULT ABS _edata 94: 000007a9 0 FUNC GLOBAL DEFAULT 14 _fini 95: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 96: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 97: 00009000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 98: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.4 99: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 100: 00000701 96 FUNC GLOBAL DEFAULT 13 announcement 101: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 102: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 103: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 104: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _end 105: 00000639 0 FUNC GLOBAL DEFAULT 13 _start 106: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 107: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __end__ 108: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 109: 00000625 18 FUNC GLOBAL DEFAULT 13 main 110: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 111: 00000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4 112: 000005ad 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 (0x40008701) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x400e2701) # Check state of hardening features via check script perl ../hardening-check ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Manually check state of hardening features # Test PIE readelf -lW ../build-tree/wrapper-test-linked | grep '^Elf file type is DYN' Elf file type is DYN (Shared object file) # Test Stack Protector nm ../build-tree/wrapper-test-linked | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.4 # Test Fortify nm ../build-tree/wrapper-test-linked | egrep '__(sn)?printf_chk($|@@GLIBC)' U __printf_chk@@GLIBC_2.4 # Test Format (no-op currently) # Test for RELRO readelf -lW ../build-tree/wrapper-test-linked | grep GNU_RELRO GNU_RELRO 0x000eb0 0x00008eb0 0x00008eb0 0x00150 0x00150 R 0x1 # Test for BIND_NOW readelf -dW ../build-tree/wrapper-test-linked | grep BIND_NOW 0x00000018 (BIND_NOW) # Build directly with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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 --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -z relro -o ../build-tree/wrapper-test-fPIC-direct /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtbeginS.o -L../build-tree -L/usr/lib/gcc/arm-linux-gnueabihf/4.6 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../.. -Bsymbolic-functions -z relro /tmp/ccuyA83C.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crtn.o ../build-tree/wrapper-test-fPIC-direct ../build-tree/wrapper-test-fPIC-direct: ok (0x4007172d) # Build .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC.o -c hello.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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 --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -z relro -o ../build-tree/wrapper-test-fPIC /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtbeginS.o -L../build-tree -L/usr/lib/gcc/arm-linux-gnueabihf/4.6 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../.. -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/arm-linux-gnueabihf/4.6/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crtn.o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC: ok (0x4002272d) # Make sure build fails due to -Werror=format-security ! ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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] cc1: some warnings being treated as errors # Make sure build succeeds with -Wno-format-security ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wno-format-security -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-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 --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -z relro -o ../build-tree/wrapper-test-format-security /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtbeginS.o -L../build-tree -L/usr/lib/gcc/arm-linux-gnueabihf/4.6 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../.. -Bsymbolic-functions -z relro /tmp/ccQQhZT6.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crtn.o # Make sure build stack-protects a small ssp buffer ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-ssp-buffer-size-protect ssp-buffer-size-protect.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-ssp-buffer-size-protect ssp-buffer-size-protect.c /usr/bin/ld.bfd -z now --sysroot=/ --build-id --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -z relro -o ../build-tree/wrapper-test-ssp-buffer-size-protect /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtbeginS.o -L../build-tree -L/usr/lib/gcc/arm-linux-gnueabihf/4.6 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../.. -Bsymbolic-functions -z relro /tmp/ccgyGEZK.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crtn.o # Test Stack Protector nm ../build-tree/wrapper-test-ssp-buffer-size-protect | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.4 # Make sure build does not stack-protects a tiny ssp buffer ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-ssp-buffer-size-skip ssp-buffer-size-skip.c /usr/bin/gcc-4.6 -fstack-protector --param ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -Wl,-Bsymbolic-functions -Wl,-z,relro -o ../build-tree/wrapper-test-ssp-buffer-size-skip ssp-buffer-size-skip.c /usr/bin/ld.bfd -z now --sysroot=/ --build-id --no-add-needed --as-needed --eh-frame-hdr -dynamic-linker /lib/ld-linux-armhf.so.3 -X --hash-style=gnu -m armelf_linux_eabi -pie -z relro -o ../build-tree/wrapper-test-ssp-buffer-size-skip /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/Scrt1.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crti.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtbeginS.o -L../build-tree -L/usr/lib/gcc/arm-linux-gnueabihf/4.6 -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib -L/lib/arm-linux-gnueabihf -L/lib/../lib -L/usr/lib/arm-linux-gnueabihf -L/usr/lib/../lib -L/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../.. -Bsymbolic-functions -z relro /tmp/ccJpVnVi.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/arm-linux-gnueabihf/4.6/crtendS.o /usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../arm-linux-gnueabihf/crtn.o # Test Stack Protector is correctly skipped ! nm ../build-tree/wrapper-test-ssp-buffer-size-skip | egrep '__stack_chk_fail($|@@GLIBC)' make[2]: Leaving directory `/build/buildd/hardening-wrapper-1.36ubuntu1.1/tests' make -f Makefile.includes check make[2]: Entering directory `/build/buildd/hardening-wrapper-1.36ubuntu1.1/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 0x83e9 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x00056c 0x0000856c 0x0000856c 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00008034 0x00008034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00008154 0x00008154 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00008000 0x00008000 0x00578 0x00578 R E 0x8000 LOAD 0x000f04 0x00010f04 0x00010f04 0x0012c 0x00134 RW 0x8000 DYNAMIC 0x000f10 0x00010f10 0x00010f10 0x000f0 0x000f0 RW 0x4 NOTE 0x000170 0x00008170 0x00008170 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000f04 0x00010f04 0x00010f04 0x000fc 0x000fc R 0x1 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 08 .init_array .fini_array .jcr .dynamic Dynamic section at offset 0xf10 contains 25 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3] 0x0000000c (INIT) 0x837d 0x0000000d (FINI) 0x854d 0x00000019 (INIT_ARRAY) 0x10f04 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x10f08 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x81b4 0x00000005 (STRTAB) 0x8270 0x00000006 (SYMTAB) 0x81f0 0x0000000a (STRSZ) 124 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x11000 0x00000002 (PLTRELSZ) 48 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x834c 0x00000011 (REL) 0x833c 0x00000012 (RELSZ) 16 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x6ffffffe (VERNEED) 0x82fc 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x82ec 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x33c contains 2 entries: Offset Info Type Sym. Value Symbol's Name 00011024 00000115 R_ARM_GLOB_DAT 00000000 __gmon_start__ 00011030 00000214 R_ARM_COPY 00011030 __stack_chk_guard Relocation section '.rel.plt' at offset 0x34c contains 6 entries: Offset Info Type Sym. Value Symbol's Name 0001100c 00000316 R_ARM_JUMP_SLOT 0000839c printf 00011010 00000616 R_ARM_JUMP_SLOT 000083a8 __stack_chk_fail 00011014 00000716 R_ARM_JUMP_SLOT 000083b4 __libc_start_main 00011018 00000116 R_ARM_JUMP_SLOT 00000000 __gmon_start__ 0001101c 00000416 R_ARM_JUMP_SLOT 000083d0 snprintf 00011020 00000516 R_ARM_JUMP_SLOT 000083dc abort Symbol table '.dynsym' contains 8 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 2: 00011030 4 OBJECT GLOBAL DEFAULT 24 __stack_chk_guard@GLIBC_2.4 (3) 3: 0000839c 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.4 (2) 4: 000083d0 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 5: 000083dc 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2) 6: 000083a8 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 7: 000083b4 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2) Symbol table '.symtab' contains 101 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00008154 0 SECTION LOCAL DEFAULT 1 2: 00008170 0 SECTION LOCAL DEFAULT 2 3: 00008190 0 SECTION LOCAL DEFAULT 3 4: 000081b4 0 SECTION LOCAL DEFAULT 4 5: 000081f0 0 SECTION LOCAL DEFAULT 5 6: 00008270 0 SECTION LOCAL DEFAULT 6 7: 000082ec 0 SECTION LOCAL DEFAULT 7 8: 000082fc 0 SECTION LOCAL DEFAULT 8 9: 0000833c 0 SECTION LOCAL DEFAULT 9 10: 0000834c 0 SECTION LOCAL DEFAULT 10 11: 0000837c 0 SECTION LOCAL DEFAULT 11 12: 00008388 0 SECTION LOCAL DEFAULT 12 13: 000083e8 0 SECTION LOCAL DEFAULT 13 14: 0000854c 0 SECTION LOCAL DEFAULT 14 15: 00008554 0 SECTION LOCAL DEFAULT 15 16: 0000856c 0 SECTION LOCAL DEFAULT 16 17: 00008574 0 SECTION LOCAL DEFAULT 17 18: 00010f04 0 SECTION LOCAL DEFAULT 18 19: 00010f08 0 SECTION LOCAL DEFAULT 19 20: 00010f0c 0 SECTION LOCAL DEFAULT 20 21: 00010f10 0 SECTION LOCAL DEFAULT 21 22: 00011000 0 SECTION LOCAL DEFAULT 22 23: 00011028 0 SECTION LOCAL DEFAULT 23 24: 00011030 0 SECTION LOCAL DEFAULT 24 25: 00000000 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00008170 0 NOTYPE LOCAL DEFAULT 2 $d 28: 000083e8 0 NOTYPE LOCAL DEFAULT 13 $t 29: 0000856c 0 NOTYPE LOCAL DEFAULT 16 $d 30: 00008412 0 NOTYPE LOCAL DEFAULT 13 $d 31: 00008554 0 NOTYPE LOCAL DEFAULT 15 $d 32: 00011028 0 NOTYPE LOCAL DEFAULT 23 $d 33: 00008420 0 NOTYPE LOCAL DEFAULT 13 $t 34: 00008421 0 FUNC LOCAL DEFAULT 13 call_gmon_start 35: 00008430 0 NOTYPE LOCAL DEFAULT 13 $d 36: 0000837c 0 NOTYPE LOCAL DEFAULT 11 $t 37: 0000854c 0 NOTYPE LOCAL DEFAULT 14 $t 38: 00008384 0 NOTYPE LOCAL DEFAULT 11 $t 39: 00008550 0 NOTYPE LOCAL DEFAULT 14 $t 40: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 41: 00010f0c 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__ 42: 0001102c 0 NOTYPE LOCAL DEFAULT 23 $d 43: 00008438 0 NOTYPE LOCAL DEFAULT 13 $t 44: 00008439 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 45: 00008444 0 NOTYPE LOCAL DEFAULT 13 $d 46: 00011034 1 OBJECT LOCAL DEFAULT 24 completed.6152 47: 00010f08 0 NOTYPE LOCAL DEFAULT 19 $d 48: 00010f08 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 49: 00008448 0 NOTYPE LOCAL DEFAULT 13 $t 50: 00008449 0 FUNC LOCAL DEFAULT 13 frame_dummy 51: 00008458 0 NOTYPE LOCAL DEFAULT 13 $d 52: 00010f04 0 NOTYPE LOCAL DEFAULT 18 $d 53: 00010f04 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 54: 00011034 0 NOTYPE LOCAL DEFAULT 24 $d 55: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 56: 00008558 0 NOTYPE LOCAL DEFAULT 15 $d 57: 00008460 0 NOTYPE LOCAL DEFAULT 13 $t 58: 00008504 0 NOTYPE LOCAL DEFAULT 13 $t 59: 00008540 0 NOTYPE LOCAL DEFAULT 13 $d 60: 00008548 0 NOTYPE LOCAL DEFAULT 13 $t 61: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 62: 00008574 0 NOTYPE LOCAL DEFAULT 17 $d 63: 00008574 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 64: 00010f0c 0 NOTYPE LOCAL DEFAULT 20 $d 65: 00010f0c 0 OBJECT LOCAL DEFAULT 20 __JCR_END__ 66: 00010f08 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 67: 00010f10 0 OBJECT LOCAL DEFAULT 21 _DYNAMIC 68: 00010f04 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 69: 00011000 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_ 70: 00008388 0 NOTYPE LOCAL DEFAULT 12 $a 71: 00008398 0 NOTYPE LOCAL DEFAULT 12 $d 72: 0000839c 0 NOTYPE LOCAL DEFAULT 12 $a 73: 000083c0 0 NOTYPE LOCAL DEFAULT 12 $t 74: 000083c4 0 NOTYPE LOCAL DEFAULT 12 $a 75: 00008549 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 76: 00011028 0 NOTYPE WEAK DEFAULT 23 data_start 77: 0000839c 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.4 78: 00011030 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 79: 00011030 4 OBJECT GLOBAL DEFAULT 24 __stack_chk_guard@@GLIBC_2.4 80: 00011038 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 81: 00011030 0 NOTYPE GLOBAL DEFAULT ABS _edata 82: 0000854d 0 FUNC GLOBAL DEFAULT 14 _fini 83: 00011038 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 84: 000083a8 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 85: 00011028 0 NOTYPE GLOBAL DEFAULT 23 __data_start 86: 000083b4 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.4 87: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 88: 0001102c 0 OBJECT GLOBAL HIDDEN 23 __dso_handle 89: 00008461 124 FUNC GLOBAL DEFAULT 13 announcement 90: 00008554 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 91: 00008505 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 92: 000083d0 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 93: 00011038 0 NOTYPE GLOBAL DEFAULT ABS _end 94: 000083e9 0 FUNC GLOBAL DEFAULT 13 _start 95: 00011038 0 NOTYPE GLOBAL DEFAULT ABS __end__ 96: 00011030 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 97: 000084dd 40 FUNC GLOBAL DEFAULT 13 main 98: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 99: 000083dc 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4 100: 0000837d 0 FUNC GLOBAL DEFAULT 11 _init ../build-tree/includes-test-stock ../build-tree/includes-test-stock: ok (0x8461) # Compiler options enabled. (linker is not wrapper) cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 0x639 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x0007c8 0x000007c8 0x000007c8 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00000000 0x00000000 0x007d4 0x007d4 R E 0x8000 LOAD 0x000eb0 0x00008eb0 0x00008eb0 0x00158 0x0015c RW 0x8000 DYNAMIC 0x000ebc 0x00008ebc 0x00008ebc 0x00100 0x00100 RW 0x4 NOTE 0x000170 0x00000170 0x00000170 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000eb0 0x00008eb0 0x00008eb0 0x00150 0x00150 R 0x1 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 08 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xebc contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3] 0x0000000c (INIT) 0x5ad 0x0000000d (FINI) 0x7a9 0x00000019 (INIT_ARRAY) 0x8eb0 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x8eb4 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1b4 0x00000005 (STRTAB) 0x390 0x00000006 (SYMTAB) 0x210 0x0000000a (STRSZ) 290 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x8fbc 0x00000002 (PLTRELSZ) 56 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x574 0x00000011 (REL) 0x524 0x00000012 (RELSZ) 80 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW 0x6ffffffe (VERNEED) 0x4e4 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x4b2 0x6ffffffa (RELCOUNT) 6 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x524 contains 10 entries: Offset Info Type Sym. Value Symbol's Name 00008eb0 00000017 R_ARM_RELATIVE 00008eb4 00000017 R_ARM_RELATIVE 00008fe4 00000017 R_ARM_RELATIVE 00008ff4 00000017 R_ARM_RELATIVE 00008ff8 00000017 R_ARM_RELATIVE 00009004 00000017 R_ARM_RELATIVE 00008fe8 00000315 R_ARM_GLOB_DAT 00000000 __cxa_finalize 00008fec 00000415 R_ARM_GLOB_DAT 00000000 __stack_chk_guard 00008ff0 00000715 R_ARM_GLOB_DAT 00000000 __gmon_start__ 00008ffc 00000a15 R_ARM_GLOB_DAT 00000000 _Jv_RegisterClasses Relocation section '.rel.plt' at offset 0x574 contains 7 entries: Offset Info Type Sym. Value Symbol's Name 00008fc8 00000316 R_ARM_JUMP_SLOT 00000000 __cxa_finalize 00008fcc 00000516 R_ARM_JUMP_SLOT 00000000 __stack_chk_fail 00008fd0 00000616 R_ARM_JUMP_SLOT 00000000 __libc_start_main 00008fd4 00000716 R_ARM_JUMP_SLOT 00000000 __gmon_start__ 00008fd8 00000816 R_ARM_JUMP_SLOT 00000000 snprintf 00008fdc 00000916 R_ARM_JUMP_SLOT 00000000 __printf_chk 00008fe0 00000b16 R_ARM_JUMP_SLOT 00000000 abort Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00008eb8 0 SECTION LOCAL DEFAULT 20 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.4 (2) 4: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.4 (3) 5: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 6: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2) 7: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 8: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 9: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 10: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 00000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2) 12: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 13: 00009008 0 NOTYPE GLOBAL DEFAULT ABS _edata 14: 00009000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 15: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _end 16: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 17: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 20: 00000625 18 FUNC GLOBAL DEFAULT 13 main 21: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 23: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __end__ Symbol table '.symtab' contains 113 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000170 0 SECTION LOCAL DEFAULT 2 3: 00000190 0 SECTION LOCAL DEFAULT 3 4: 000001b4 0 SECTION LOCAL DEFAULT 4 5: 00000210 0 SECTION LOCAL DEFAULT 5 6: 00000390 0 SECTION LOCAL DEFAULT 6 7: 000004b2 0 SECTION LOCAL DEFAULT 7 8: 000004e4 0 SECTION LOCAL DEFAULT 8 9: 00000524 0 SECTION LOCAL DEFAULT 9 10: 00000574 0 SECTION LOCAL DEFAULT 10 11: 000005ac 0 SECTION LOCAL DEFAULT 11 12: 000005b8 0 SECTION LOCAL DEFAULT 12 13: 00000624 0 SECTION LOCAL DEFAULT 13 14: 000007a8 0 SECTION LOCAL DEFAULT 14 15: 000007b0 0 SECTION LOCAL DEFAULT 15 16: 000007c8 0 SECTION LOCAL DEFAULT 16 17: 000007d0 0 SECTION LOCAL DEFAULT 17 18: 00008eb0 0 SECTION LOCAL DEFAULT 18 19: 00008eb4 0 SECTION LOCAL DEFAULT 19 20: 00008eb8 0 SECTION LOCAL DEFAULT 20 21: 00008ebc 0 SECTION LOCAL DEFAULT 21 22: 00008fbc 0 SECTION LOCAL DEFAULT 22 23: 00009000 0 SECTION LOCAL DEFAULT 23 24: 00009008 0 SECTION LOCAL DEFAULT 24 25: 00000000 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00000000 0 SECTION LOCAL DEFAULT 28 29: 00000000 0 SECTION LOCAL DEFAULT 29 30: 00000000 0 SECTION LOCAL DEFAULT 30 31: 00000000 0 SECTION LOCAL DEFAULT 31 32: 00000000 0 SECTION LOCAL DEFAULT 32 33: 00000000 0 SECTION LOCAL DEFAULT 33 34: 00000000 0 SECTION LOCAL DEFAULT 34 35: 00000170 0 NOTYPE LOCAL DEFAULT 2 $d 36: 00000638 0 NOTYPE LOCAL DEFAULT 13 $t 37: 00000678 0 NOTYPE LOCAL DEFAULT 13 $d 38: 000007c8 0 NOTYPE LOCAL DEFAULT 16 $d 39: 000007b0 0 NOTYPE LOCAL DEFAULT 15 $d 40: 00009000 0 NOTYPE LOCAL DEFAULT 23 $d 41: 00000688 0 NOTYPE LOCAL DEFAULT 13 $t 42: 00000689 0 FUNC LOCAL DEFAULT 13 call_gmon_start 43: 00000698 0 NOTYPE LOCAL DEFAULT 13 $d 44: 000005ac 0 NOTYPE LOCAL DEFAULT 11 $t 45: 000007a8 0 NOTYPE LOCAL DEFAULT 14 $t 46: 000005b4 0 NOTYPE LOCAL DEFAULT 11 $t 47: 000007ac 0 NOTYPE LOCAL DEFAULT 14 $t 48: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 49: 00000700 0 NOTYPE LOCAL DEFAULT 13 $t 50: 0000074c 0 NOTYPE LOCAL DEFAULT 13 $d 51: 00000624 0 NOTYPE LOCAL DEFAULT 13 $t 52: 000007b4 0 NOTYPE LOCAL DEFAULT 15 $d 53: 00000010 0 NOTYPE LOCAL DEFAULT 31 $d 54: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 55: 00008eb8 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__ 56: 00009004 0 NOTYPE LOCAL DEFAULT 23 $d 57: 000006a0 0 NOTYPE LOCAL DEFAULT 13 $t 58: 000006a1 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 59: 000006c8 0 NOTYPE LOCAL DEFAULT 13 $d 60: 00009008 1 OBJECT LOCAL DEFAULT 24 completed.6152 61: 00008eb4 0 NOTYPE LOCAL DEFAULT 19 $d 62: 00008eb4 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 63: 000006dc 0 NOTYPE LOCAL DEFAULT 13 $t 64: 000006dd 0 FUNC LOCAL DEFAULT 13 frame_dummy 65: 000006f4 0 NOTYPE LOCAL DEFAULT 13 $d 66: 00008eb0 0 NOTYPE LOCAL DEFAULT 18 $d 67: 00008eb0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 68: 00009008 0 NOTYPE LOCAL DEFAULT 24 $d 69: 00000760 0 NOTYPE LOCAL DEFAULT 13 $t 70: 0000079c 0 NOTYPE LOCAL DEFAULT 13 $d 71: 000007a4 0 NOTYPE LOCAL DEFAULT 13 $t 72: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 73: 000007d0 0 NOTYPE LOCAL DEFAULT 17 $d 74: 000007d0 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 75: 00008eb8 0 NOTYPE LOCAL DEFAULT 20 $d 76: 00008eb8 0 OBJECT LOCAL DEFAULT 20 __JCR_END__ 77: 00008eb4 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 78: 00009004 0 OBJECT LOCAL DEFAULT 23 __dso_handle 79: 00008ebc 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 80: 00008eb0 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 81: 00008fbc 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 82: 000005b8 0 NOTYPE LOCAL DEFAULT 12 $a 83: 000005c8 0 NOTYPE LOCAL DEFAULT 12 $d 84: 000005cc 0 NOTYPE LOCAL DEFAULT 12 $a 85: 000005f0 0 NOTYPE LOCAL DEFAULT 12 $t 86: 000005f4 0 NOTYPE LOCAL DEFAULT 12 $a 87: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 88: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.4 89: 00009000 0 NOTYPE WEAK DEFAULT 23 data_start 90: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 91: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@@GLIBC_2.4 92: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 93: 00009008 0 NOTYPE GLOBAL DEFAULT ABS _edata 94: 000007a9 0 FUNC GLOBAL DEFAULT 14 _fini 95: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 96: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 97: 00009000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 98: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.4 99: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 100: 00000701 96 FUNC GLOBAL DEFAULT 13 announcement 101: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 102: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 103: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 104: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _end 105: 00000639 0 FUNC GLOBAL DEFAULT 13 _start 106: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 107: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __end__ 108: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 109: 00000625 18 FUNC GLOBAL DEFAULT 13 main 110: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 111: 00000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4 112: 000005ad 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 (0x400ba701) ../build-tree/includes-test-compiled ../build-tree/includes-test-compiled: ok (0x400bc701) # Compiler and linker options enabled. cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 0x639 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x0007c8 0x000007c8 0x000007c8 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00000000 0x00000000 0x007d4 0x007d4 R E 0x8000 LOAD 0x000eb0 0x00008eb0 0x00008eb0 0x00158 0x0015c RW 0x8000 DYNAMIC 0x000ebc 0x00008ebc 0x00008ebc 0x00100 0x00100 RW 0x4 NOTE 0x000170 0x00000170 0x00000170 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000eb0 0x00008eb0 0x00008eb0 0x00150 0x00150 R 0x1 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 08 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xebc contains 28 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x00000001 (NEEDED) Shared library: [ld-linux-armhf.so.3] 0x0000000c (INIT) 0x5ad 0x0000000d (FINI) 0x7a9 0x00000019 (INIT_ARRAY) 0x8eb0 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x8eb4 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1b4 0x00000005 (STRTAB) 0x390 0x00000006 (SYMTAB) 0x210 0x0000000a (STRSZ) 290 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x8fbc 0x00000002 (PLTRELSZ) 56 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x574 0x00000011 (REL) 0x524 0x00000012 (RELSZ) 80 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW 0x6ffffffe (VERNEED) 0x4e4 0x6fffffff (VERNEEDNUM) 2 0x6ffffff0 (VERSYM) 0x4b2 0x6ffffffa (RELCOUNT) 6 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x524 contains 10 entries: Offset Info Type Sym. Value Symbol's Name 00008eb0 00000017 R_ARM_RELATIVE 00008eb4 00000017 R_ARM_RELATIVE 00008fe4 00000017 R_ARM_RELATIVE 00008ff4 00000017 R_ARM_RELATIVE 00008ff8 00000017 R_ARM_RELATIVE 00009004 00000017 R_ARM_RELATIVE 00008fe8 00000315 R_ARM_GLOB_DAT 00000000 __cxa_finalize 00008fec 00000415 R_ARM_GLOB_DAT 00000000 __stack_chk_guard 00008ff0 00000715 R_ARM_GLOB_DAT 00000000 __gmon_start__ 00008ffc 00000a15 R_ARM_GLOB_DAT 00000000 _Jv_RegisterClasses Relocation section '.rel.plt' at offset 0x574 contains 7 entries: Offset Info Type Sym. Value Symbol's Name 00008fc8 00000316 R_ARM_JUMP_SLOT 00000000 __cxa_finalize 00008fcc 00000516 R_ARM_JUMP_SLOT 00000000 __stack_chk_fail 00008fd0 00000616 R_ARM_JUMP_SLOT 00000000 __libc_start_main 00008fd4 00000716 R_ARM_JUMP_SLOT 00000000 __gmon_start__ 00008fd8 00000816 R_ARM_JUMP_SLOT 00000000 snprintf 00008fdc 00000916 R_ARM_JUMP_SLOT 00000000 __printf_chk 00008fe0 00000b16 R_ARM_JUMP_SLOT 00000000 abort Symbol table '.dynsym' contains 24 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00008eb8 0 SECTION LOCAL DEFAULT 20 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.4 (2) 4: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@GLIBC_2.4 (3) 5: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 6: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.4 (2) 7: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 8: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 9: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 10: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 11: 00000000 0 FUNC GLOBAL DEFAULT UND abort@GLIBC_2.4 (2) 12: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 13: 00009008 0 NOTYPE GLOBAL DEFAULT ABS _edata 14: 00009000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 15: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _end 16: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 17: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 18: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 19: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 20: 00000625 18 FUNC GLOBAL DEFAULT 13 main 21: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 22: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 23: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __end__ Symbol table '.symtab' contains 113 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000170 0 SECTION LOCAL DEFAULT 2 3: 00000190 0 SECTION LOCAL DEFAULT 3 4: 000001b4 0 SECTION LOCAL DEFAULT 4 5: 00000210 0 SECTION LOCAL DEFAULT 5 6: 00000390 0 SECTION LOCAL DEFAULT 6 7: 000004b2 0 SECTION LOCAL DEFAULT 7 8: 000004e4 0 SECTION LOCAL DEFAULT 8 9: 00000524 0 SECTION LOCAL DEFAULT 9 10: 00000574 0 SECTION LOCAL DEFAULT 10 11: 000005ac 0 SECTION LOCAL DEFAULT 11 12: 000005b8 0 SECTION LOCAL DEFAULT 12 13: 00000624 0 SECTION LOCAL DEFAULT 13 14: 000007a8 0 SECTION LOCAL DEFAULT 14 15: 000007b0 0 SECTION LOCAL DEFAULT 15 16: 000007c8 0 SECTION LOCAL DEFAULT 16 17: 000007d0 0 SECTION LOCAL DEFAULT 17 18: 00008eb0 0 SECTION LOCAL DEFAULT 18 19: 00008eb4 0 SECTION LOCAL DEFAULT 19 20: 00008eb8 0 SECTION LOCAL DEFAULT 20 21: 00008ebc 0 SECTION LOCAL DEFAULT 21 22: 00008fbc 0 SECTION LOCAL DEFAULT 22 23: 00009000 0 SECTION LOCAL DEFAULT 23 24: 00009008 0 SECTION LOCAL DEFAULT 24 25: 00000000 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00000000 0 SECTION LOCAL DEFAULT 28 29: 00000000 0 SECTION LOCAL DEFAULT 29 30: 00000000 0 SECTION LOCAL DEFAULT 30 31: 00000000 0 SECTION LOCAL DEFAULT 31 32: 00000000 0 SECTION LOCAL DEFAULT 32 33: 00000000 0 SECTION LOCAL DEFAULT 33 34: 00000000 0 SECTION LOCAL DEFAULT 34 35: 00000170 0 NOTYPE LOCAL DEFAULT 2 $d 36: 00000638 0 NOTYPE LOCAL DEFAULT 13 $t 37: 00000678 0 NOTYPE LOCAL DEFAULT 13 $d 38: 000007c8 0 NOTYPE LOCAL DEFAULT 16 $d 39: 000007b0 0 NOTYPE LOCAL DEFAULT 15 $d 40: 00009000 0 NOTYPE LOCAL DEFAULT 23 $d 41: 00000688 0 NOTYPE LOCAL DEFAULT 13 $t 42: 00000689 0 FUNC LOCAL DEFAULT 13 call_gmon_start 43: 00000698 0 NOTYPE LOCAL DEFAULT 13 $d 44: 000005ac 0 NOTYPE LOCAL DEFAULT 11 $t 45: 000007a8 0 NOTYPE LOCAL DEFAULT 14 $t 46: 000005b4 0 NOTYPE LOCAL DEFAULT 11 $t 47: 000007ac 0 NOTYPE LOCAL DEFAULT 14 $t 48: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 49: 00000700 0 NOTYPE LOCAL DEFAULT 13 $t 50: 0000074c 0 NOTYPE LOCAL DEFAULT 13 $d 51: 00000624 0 NOTYPE LOCAL DEFAULT 13 $t 52: 000007b4 0 NOTYPE LOCAL DEFAULT 15 $d 53: 00000010 0 NOTYPE LOCAL DEFAULT 31 $d 54: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 55: 00008eb8 0 OBJECT LOCAL DEFAULT 20 __JCR_LIST__ 56: 00009004 0 NOTYPE LOCAL DEFAULT 23 $d 57: 000006a0 0 NOTYPE LOCAL DEFAULT 13 $t 58: 000006a1 0 FUNC LOCAL DEFAULT 13 __do_global_dtors_aux 59: 000006c8 0 NOTYPE LOCAL DEFAULT 13 $d 60: 00009008 1 OBJECT LOCAL DEFAULT 24 completed.6152 61: 00008eb4 0 NOTYPE LOCAL DEFAULT 19 $d 62: 00008eb4 0 OBJECT LOCAL DEFAULT 19 __do_global_dtors_aux_fini_array_entry 63: 000006dc 0 NOTYPE LOCAL DEFAULT 13 $t 64: 000006dd 0 FUNC LOCAL DEFAULT 13 frame_dummy 65: 000006f4 0 NOTYPE LOCAL DEFAULT 13 $d 66: 00008eb0 0 NOTYPE LOCAL DEFAULT 18 $d 67: 00008eb0 0 OBJECT LOCAL DEFAULT 18 __frame_dummy_init_array_entry 68: 00009008 0 NOTYPE LOCAL DEFAULT 24 $d 69: 00000760 0 NOTYPE LOCAL DEFAULT 13 $t 70: 0000079c 0 NOTYPE LOCAL DEFAULT 13 $d 71: 000007a4 0 NOTYPE LOCAL DEFAULT 13 $t 72: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 73: 000007d0 0 NOTYPE LOCAL DEFAULT 17 $d 74: 000007d0 0 OBJECT LOCAL DEFAULT 17 __FRAME_END__ 75: 00008eb8 0 NOTYPE LOCAL DEFAULT 20 $d 76: 00008eb8 0 OBJECT LOCAL DEFAULT 20 __JCR_END__ 77: 00008eb4 0 NOTYPE LOCAL DEFAULT 18 __init_array_end 78: 00009004 0 OBJECT LOCAL DEFAULT 23 __dso_handle 79: 00008ebc 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 80: 00008eb0 0 NOTYPE LOCAL DEFAULT 18 __init_array_start 81: 00008fbc 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 82: 000005b8 0 NOTYPE LOCAL DEFAULT 12 $a 83: 000005c8 0 NOTYPE LOCAL DEFAULT 12 $d 84: 000005cc 0 NOTYPE LOCAL DEFAULT 12 $a 85: 000005f0 0 NOTYPE LOCAL DEFAULT 12 $t 86: 000005f4 0 NOTYPE LOCAL DEFAULT 12 $a 87: 000007a5 2 FUNC GLOBAL DEFAULT 13 __libc_csu_fini 88: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.4 89: 00009000 0 NOTYPE WEAK DEFAULT 23 data_start 90: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start__ 91: 00000000 0 OBJECT GLOBAL DEFAULT UND __stack_chk_guard@@GLIBC_2.4 92: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _bss_end__ 93: 00009008 0 NOTYPE GLOBAL DEFAULT ABS _edata 94: 000007a9 0 FUNC GLOBAL DEFAULT 14 _fini 95: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __bss_end__ 96: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 97: 00009000 0 NOTYPE GLOBAL DEFAULT 23 __data_start 98: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.4 99: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 100: 00000701 96 FUNC GLOBAL DEFAULT 13 announcement 101: 000007b0 4 OBJECT GLOBAL DEFAULT 15 _IO_stdin_used 102: 00000761 68 FUNC GLOBAL DEFAULT 13 __libc_csu_init 103: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 104: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS _end 105: 00000639 0 FUNC GLOBAL DEFAULT 13 _start 106: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 107: 0000900c 0 NOTYPE GLOBAL DEFAULT ABS __end__ 108: 00009008 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 109: 00000625 18 FUNC GLOBAL DEFAULT 13 main 110: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 111: 00000000 0 FUNC GLOBAL DEFAULT UND abort@@GLIBC_2.4 112: 000005ad 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 (0x4004d701) ../build-tree/includes-test-linked ../build-tree/includes-test-linked: ok (0x40092701) # Check state of hardening features via check script perl ../hardening-check ../build-tree/includes-test-linked ../build-tree/includes-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Manually check state of hardening features # Test PIE readelf -lW ../build-tree/includes-test-linked | grep '^Elf file type is DYN' Elf file type is DYN (Shared object file) # Test Stack Protector nm ../build-tree/includes-test-linked | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.4 # Test Fortify nm ../build-tree/includes-test-linked | egrep '__(sn)?printf_chk($|@@GLIBC)' U __printf_chk@@GLIBC_2.4 # Test Format (no-op currently) # Test for RELRO readelf -lW ../build-tree/includes-test-linked | grep GNU_RELRO GNU_RELRO 0x000eb0 0x00008eb0 0x00008eb0 0x00150 0x00150 R 0x1 # Test for BIND_NOW readelf -dW ../build-tree/includes-test-linked | grep BIND_NOW 0x00000018 (BIND_NOW) # Build directly with -fPIC already defined cc -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 (0x40041701) # Build .o with -fPIC already defined cc -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 (0x40033701) # Make sure build fails due to -Werror=format-security ! cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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] cc1: some warnings being treated as errors # Make sure build succeeds with -Wno-format-security cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 # Make sure build stack-protects a small ssp buffer cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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-ssp-buffer-size-protect ssp-buffer-size-protect.c # Test Stack Protector nm ../build-tree/includes-test-ssp-buffer-size-protect | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.4 # Make sure build does not stack-protects a tiny ssp buffer cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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-ssp-buffer-size-skip ssp-buffer-size-skip.c # Test Stack Protector is correctly skipped ! nm ../build-tree/includes-test-ssp-buffer-size-skip | egrep '__stack_chk_fail($|@@GLIBC)' # Disable PIE cc \ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -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 ../hardening-check ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: no, normal executable! Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Disable stack protector cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 -fno-stack-protector -o ../build-tree/includes-disabled hello.c if perl ../hardening-check ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: no, not found! Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Disable fortify cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 ../hardening-check ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: yes Fortify Source functions: no, only unprotected functions found! Read-only relocations: yes Immediate binding: yes # Disable relro cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 ../hardening-check ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: no, not found! Immediate binding: yes # Disable bindnow cc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIE -fstack-protector --param ssp-buffer-size=4 -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 ../hardening-check ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: no not found! # Disable everything cc \ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fstack-protector --param ssp-buffer-size=4 -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 ../hardening-check ../build-tree/includes-disabled; then exit 1; fi ../build-tree/includes-disabled: Position Independent Executable: no, normal executable! Stack protected: no, not found! 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 0x833d There are 8 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align EXIDX 0x000454 0x00008454 0x00008454 0x00008 0x00008 R 0x4 PHDR 0x000034 0x00008034 0x00008034 0x00100 0x00100 R E 0x4 INTERP 0x000134 0x00008134 0x00008134 0x00019 0x00019 R 0x1 [Requesting program interpreter: /lib/ld-linux-armhf.so.3] LOAD 0x000000 0x00008000 0x00008000 0x00460 0x00460 R E 0x8000 LOAD 0x000460 0x00010460 0x00010460 0x00120 0x00124 RW 0x8000 DYNAMIC 0x00046c 0x0001046c 0x0001046c 0x000e8 0x000e8 RW 0x4 NOTE 0x000150 0x00008150 0x00008150 0x00044 0x00044 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 Section to Segment mapping: Segment Sections... 00 .ARM.exidx 01 02 .interp 03 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata .ARM.exidx .eh_frame 04 .init_array .fini_array .jcr .dynamic .got .data .bss 05 .dynamic 06 .note.ABI-tag .note.gnu.build-id 07 Dynamic section at offset 0x46c contains 24 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x82c9 0x0000000d (FINI) 0x8435 0x00000019 (INIT_ARRAY) 0x10460 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x10464 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x8194 0x00000005 (STRTAB) 0x8224 0x00000006 (SYMTAB) 0x81c4 0x0000000a (STRSZ) 69 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x10554 0x00000002 (PLTRELSZ) 40 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x82a0 0x00000011 (REL) 0x8298 0x00000012 (RELSZ) 8 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x6ffffffe (VERNEED) 0x8278 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x826a 0x00000000 (NULL) 0x0 make[2]: Leaving directory `/build/buildd/hardening-wrapper-1.36ubuntu1.1/tests' make[1]: Leaving directory `/build/buildd/hardening-wrapper-1.36ubuntu1.1/tests' # Done testing touch test-stamp /usr/bin/fakeroot debian/rules binary-arch dh_testdir dh_testroot dh_clean -k dh_clean: dh_clean -k is deprecated; use dh_prep instead dh_installdirs usr/bin dh_installdirs -phardening-wrapper -A usr/share/lintian/overrides install -m644 debian/lintian.overrides debian/hardening-wrapper/usr/share/lintian/overrides/hardening-wrapper install build-tree/hardened-cc build-tree/hardened-c++ build-tree/hardened-ld debian/hardening-wrapper/usr/bin # programatically build links (change debian/h-w.{preinst,postrm} too) for ver in 4.2 4.3 4.4 4.5 4.6; do dh_link -phardening-wrapper \ usr/bin/hardened-cc usr/bin/gcc-$ver \ usr/bin/hardened-c++ usr/bin/g++-$ver \ ;\ done dh_link -phardening-wrapper usr/bin/hardened-ld usr/bin/ld.bfd dh_link -phardening-wrapper usr/bin/hardened-ld usr/bin/ld.gold install -m644 -D hardening.make debian/hardening-includes/usr/share/hardening-includes/hardening.make install -m755 -D hardening-check debian/hardening-includes/usr/bin/hardening-check dh_perl -a dh_testdir -a dh_testroot -a dh_installdocs -a AUTHORS TODO dh_installexamples -a dh_installmenu -a dh_installcron -a dh_installman -a dh_installchangelogs -a dh_strip -a dh_strip debug symbol extraction: all non-arch-all packages for this build platform armhf: hardening-wrapper dh_strip debug symbol extraction: packages to act on: hardening-wrapper dh_strip debug symbol extraction: ignored packages: hardening-wrapper is already stripped, ignoring dh_compress -a dh_fixperms -a dh_installdeb -a dh_shlibdeps -a dh_gencontrol -a dh_gencontrol debug symbol wrapper: all non-arch-all packages for this build platform armhf: hardening-wrapper dh_gencontrol debug symbol wrapper: packages to act on: hardening-wrapper dh_gencontrol debug symbol wrapper: ignored packages: dh_gencontrol debug symbol wrapper: no debian/hardening-wrapper-dbgsym, skipping package hardening-wrapper dh_md5sums -a dh_builddeb -a INFO: pkgstriptranslations version 116 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: Not overriding Maintainer for domain lists.ubuntu.com 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_1.36ubuntu1.1_armhf.deb'. dpkg-genchanges -B -mUbuntu/armhf Build Daemon >../hardening-wrapper_1.36ubuntu1.1_armhf.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-1.36ubuntu1.1 dpkg-buildpackage: binary only upload (no source included) ****************************************************************************** Build finished at 20150430-1755 chroot-autobuild/build/buildd/hardening-wrapper_1.36ubuntu1.1_armhf.deb: new debian package, version 2.0. size 10672 bytes: control archive= 1409 bytes. 610 bytes, 15 lines control 910 bytes, 13 lines md5sums 592 bytes, 32 lines * postinst #!/bin/sh 364 bytes, 22 lines * postrm #!/bin/sh 375 bytes, 22 lines * preinst #!/bin/sh Package: hardening-wrapper Version: 1.36ubuntu1.1 Architecture: armhf Maintainer: Ubuntu Developers Installed-Size: 70 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. Original-Maintainer: Package Hardening chroot-autobuild/build/buildd/hardening-wrapper_1.36ubuntu1.1_armhf.deb: drwxr-xr-x root/root 0 2015-04-30 17:55 ./ drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/ drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/ drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/lintian/ drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/lintian/overrides/ -rw-r--r-- root/root 108 2015-04-30 17:55 ./usr/share/lintian/overrides/hardening-wrapper drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/man/ drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/man/man1/ -rw-r--r-- root/root 734 2015-04-30 17:55 ./usr/share/man/man1/hardened-ld.1.gz -rw-r--r-- root/root 825 2015-04-30 17:55 ./usr/share/man/man1/hardening-wrapper.1.gz -rw-r--r-- root/root 825 2015-04-30 17:55 ./usr/share/man/man1/hardened-cc.1.gz -rw-r--r-- root/root 827 2015-04-30 17:55 ./usr/share/man/man1/hardened-c++.1.gz drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/doc/ drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/share/doc/hardening-wrapper/ -rw-r--r-- root/root 18 2011-07-03 20:12 ./usr/share/doc/hardening-wrapper/TODO -rw-r--r-- root/root 1554 2015-04-30 17:55 ./usr/share/doc/hardening-wrapper/changelog.gz -rw-r--r-- root/root 2949 2011-07-03 20:13 ./usr/share/doc/hardening-wrapper/README.Debian -rw-r--r-- root/root 1181 2011-07-03 20:13 ./usr/share/doc/hardening-wrapper/copyright -rw-r--r-- root/root 64 2011-07-03 20:12 ./usr/share/doc/hardening-wrapper/AUTHORS drwxr-xr-x root/root 0 2015-04-30 17:55 ./usr/bin/ -rwxr-xr-x root/root 5513 2015-04-30 17:55 ./usr/bin/hardened-c++ -rwxr-xr-x root/root 2504 2015-04-30 17:55 ./usr/bin/hardened-ld -rwxr-xr-x root/root 5510 2015-04-30 17:55 ./usr/bin/hardened-cc lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/gcc-4.6 -> hardened-cc lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/gcc-4.3 -> hardened-cc lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/g++-4.3 -> hardened-c++ lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/gcc-4.2 -> hardened-cc lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/ld.gold -> hardened-ld lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/gcc-4.5 -> hardened-cc lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/g++-4.2 -> hardened-c++ lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/ld.bfd -> hardened-ld lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/gcc-4.4 -> hardened-cc lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/g++-4.5 -> hardened-c++ lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/g++-4.6 -> hardened-c++ lrwxrwxrwx root/root 0 2015-04-30 17:55 ./usr/bin/g++-4.4 -> hardened-c++ hardening-wrapper_1.36ubuntu1.1_armhf.changes: Format: 1.8 Date: Thu, 30 Apr 2015 18:49:28 +0100 Source: hardening-wrapper Binary: hardening-wrapper hardening-includes Architecture: armhf Version: 1.36ubuntu1.1 Distribution: precise Urgency: medium Maintainer: Ubuntu/armhf Build Daemon Changed-By: Chris Coulson Description: hardening-includes - Makefile for enabling compiler flags for security hardening hardening-wrapper - Compiler wrapper to enable security hardening flags Launchpad-Bugs-Fixed: 1347257 Changes: hardening-wrapper (1.36ubuntu1.1) precise-security; urgency=medium . * hardened-cc: don't set -Wformat options if they are already set (LP: #1347257) Checksums-Sha1: 52b4935716b1c19ceba0e71040b54c5dd454e99e 10672 hardening-wrapper_1.36ubuntu1.1_armhf.deb Checksums-Sha256: 96340f08307fa8a93ac10cab79a701857bbeef51f5232713cd1d38b86d13d7dd 10672 hardening-wrapper_1.36ubuntu1.1_armhf.deb Files: 787ba05128a1976b0b9ae1fbdbbd5f90 10672 devel optional hardening-wrapper_1.36ubuntu1.1_armhf.deb Original-Maintainer: Package Hardening ****************************************************************************** Built successfully ****************************************************************************** Finished at 20150430-1755 Build needed 00:00:25, 620k disk space RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'PACKAGEBUILD-7372880'] Scanning for processes to kill in build /home/buildd/build-PACKAGEBUILD-7372880/chroot-autobuild... RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'PACKAGEBUILD-7372880'] Unmounting chroot for build PACKAGEBUILD-7372880... RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'PACKAGEBUILD-7372880'] Removing build PACKAGEBUILD-7372880