RUN: /bin/echo ['echo', 'Forking build subprocess...'] Forking build subprocess... RUN: /usr/share/launchpad-buildd/slavebin/unpack-chroot ['unpack-chroot', 'a8e0a4e66484fa908a9b90f594024999a7999d83', '/home/buildd/filecache-default/381cbc28bc48c12dc44b3e8d5f933e37867d8763'] Synching the system clock with the buildd NTP service... 27 Jul 13:01:40 ntpdate[27186]: adjust time server 10.211.37.1 offset 0.000913 sec Unpacking chroot for build a8e0a4e66484fa908a9b90f594024999a7999d83 RUN: /usr/share/launchpad-buildd/slavebin/mount-chroot ['mount-chroot', 'a8e0a4e66484fa908a9b90f594024999a7999d83'] Mounting chroot for build a8e0a4e66484fa908a9b90f594024999a7999d83 RUN: /usr/share/launchpad-buildd/slavebin/override-sources-list ['override-sources-list', 'a8e0a4e66484fa908a9b90f594024999a7999d83', 'deb http://ftpmaster.internal/ubuntu oneiric main'] Overriding sources.list in build-a8e0a4e66484fa908a9b90f594024999a7999d83 RUN: /usr/share/launchpad-buildd/slavebin/update-debian-chroot ['update-debian-chroot', 'a8e0a4e66484fa908a9b90f594024999a7999d83', 'powerpc'] Updating debian chroot for build a8e0a4e66484fa908a9b90f594024999a7999d83 Ign http://ftpmaster.internal oneiric InRelease Get:1 http://ftpmaster.internal oneiric Release.gpg [198 B] Get:2 http://ftpmaster.internal oneiric Release [39.8 kB] Get:3 http://ftpmaster.internal oneiric/main powerpc Packages [1590 kB] Ign http://ftpmaster.internal oneiric/main TranslationIndex Ign http://ftpmaster.internal oneiric/main Translation-en Fetched 1630 kB in 1s (844 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: apt apt-transport-https base-files base-passwd cpp cpp-4.6 g++ g++-4.6 gcc gcc-4.6 gcc-4.6-base grep libacl1 libattr1 libc-bin libc-dev-bin libc6 libc6-dev libgcc1 libglib2.0-0 libgomp1 libplymouth2 libstdc++6 libstdc++6-4.6-dev libudev0 libusb-0.1-4 linux-libc-dev multiarch-support plymouth udev upstart 31 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 31.4 MB of archives. After this operation, 123 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! base-files grep upstart libc-dev-bin libc6-dev libc-bin libc6 libudev0 linux-libc-dev libgomp1 gcc-4.6-base libgcc1 cpp-4.6 libstdc++6-4.6-dev g++-4.6 gcc-4.6 libstdc++6 base-passwd libattr1 libacl1 libglib2.0-0 apt libusb-0.1-4 multiarch-support udev plymouth libplymouth2 apt-transport-https cpp gcc g++ Authentication warning overridden. Get:1 http://ftpmaster.internal/ubuntu/ oneiric/main base-files powerpc 6.4ubuntu3 [55.9 kB] Get:2 http://ftpmaster.internal/ubuntu/ oneiric/main grep powerpc 2.9-1 [242 kB] Get:3 http://ftpmaster.internal/ubuntu/ oneiric/main upstart powerpc 1.3-0ubuntu4 [257 kB] Get:4 http://ftpmaster.internal/ubuntu/ oneiric/main libc-dev-bin powerpc 2.13-9ubuntu3 [80.2 kB] Get:5 http://ftpmaster.internal/ubuntu/ oneiric/main libc6-dev powerpc 2.13-9ubuntu3 [2815 kB] Get:6 http://ftpmaster.internal/ubuntu/ oneiric/main libc-bin powerpc 2.13-9ubuntu3 [1036 kB] Get:7 http://ftpmaster.internal/ubuntu/ oneiric/main libc6 powerpc 2.13-9ubuntu3 [4206 kB] Get:8 http://ftpmaster.internal/ubuntu/ oneiric/main libudev0 powerpc 172-0ubuntu4 [30.0 kB] Get:9 http://ftpmaster.internal/ubuntu/ oneiric/main linux-libc-dev powerpc 3.0.0-7.8 [793 kB] Get:10 http://ftpmaster.internal/ubuntu/ oneiric/main libgomp1 powerpc 4.6.1-5ubuntu2 [26.1 kB] Get:11 http://ftpmaster.internal/ubuntu/ oneiric/main gcc-4.6-base powerpc 4.6.1-5ubuntu2 [16.0 kB] Get:12 http://ftpmaster.internal/ubuntu/ oneiric/main libgcc1 powerpc 1:4.6.1-5ubuntu2 [42.9 kB] Get:13 http://ftpmaster.internal/ubuntu/ oneiric/main cpp-4.6 powerpc 4.6.1-5ubuntu2 [4580 kB] Get:14 http://ftpmaster.internal/ubuntu/ oneiric/main libstdc++6-4.6-dev powerpc 4.6.1-5ubuntu2 [1645 kB] Get:15 http://ftpmaster.internal/ubuntu/ oneiric/main g++-4.6 powerpc 4.6.1-5ubuntu2 [6090 kB] Get:16 http://ftpmaster.internal/ubuntu/ oneiric/main gcc-4.6 powerpc 4.6.1-5ubuntu2 [5177 kB] Get:17 http://ftpmaster.internal/ubuntu/ oneiric/main libstdc++6 powerpc 4.6.1-5ubuntu2 [371 kB] Get:18 http://ftpmaster.internal/ubuntu/ oneiric/main base-passwd powerpc 3.5.23 [38.5 kB] Get:19 http://ftpmaster.internal/ubuntu/ oneiric/main libattr1 powerpc 1:2.4.46-3 [11.0 kB] Get:20 http://ftpmaster.internal/ubuntu/ oneiric/main libacl1 powerpc 2.2.51-3 [17.3 kB] Get:21 http://ftpmaster.internal/ubuntu/ oneiric/main libglib2.0-0 powerpc 2.29.14-0ubuntu1 [1125 kB] Get:22 http://ftpmaster.internal/ubuntu/ oneiric/main apt powerpc 0.8.15.4ubuntu1 [2122 kB] Get:23 http://ftpmaster.internal/ubuntu/ oneiric/main libusb-0.1-4 powerpc 2:0.1.12-18 [16.4 kB] Get:24 http://ftpmaster.internal/ubuntu/ oneiric/main multiarch-support powerpc 2.13-9ubuntu3 [4476 B] Get:25 http://ftpmaster.internal/ubuntu/ oneiric/main udev powerpc 172-0ubuntu4 [328 kB] Get:26 http://ftpmaster.internal/ubuntu/ oneiric/main plymouth powerpc 0.8.2-2ubuntu25 [108 kB] Get:27 http://ftpmaster.internal/ubuntu/ oneiric/main libplymouth2 powerpc 0.8.2-2ubuntu25 [85.2 kB] Get:28 http://ftpmaster.internal/ubuntu/ oneiric/main apt-transport-https powerpc 0.8.15.4ubuntu1 [18.4 kB] Get:29 http://ftpmaster.internal/ubuntu/ oneiric/main cpp powerpc 4:4.6.1-2ubuntu3 [27.9 kB] Get:30 http://ftpmaster.internal/ubuntu/ oneiric/main gcc powerpc 4:4.6.1-2ubuntu3 [5122 B] Get:31 http://ftpmaster.internal/ubuntu/ oneiric/main g++ powerpc 4:4.6.1-2ubuntu3 [1446 B] debconf: delaying package configuration, since apt-utils is not installed Fetched 31.4 MB in 1s (20.3 MB/s) (Reading database ... 14120 files and directories currently installed.) Preparing to replace base-files 6.4ubuntu2 (using .../base-files_6.4ubuntu3_powerpc.deb) ... Unpacking replacement base-files ... Setting up base-files (6.4ubuntu3) ... (Reading database ... 14120 files and directories currently installed.) Preparing to replace grep 2.8-2 (using .../grep_2.9-1_powerpc.deb) ... Unpacking replacement grep ... Setting up grep (2.9-1) ... (Reading database ... 14120 files and directories currently installed.) Preparing to replace upstart 1.3-0ubuntu3 (using .../upstart_1.3-0ubuntu4_powerpc.deb) ... Unpacking replacement upstart ... Preparing to replace libc-dev-bin 2.13-9ubuntu2 (using .../libc-dev-bin_2.13-9ubuntu3_powerpc.deb) ... Unpacking replacement libc-dev-bin ... Preparing to replace libc6-dev 2.13-9ubuntu2 (using .../libc6-dev_2.13-9ubuntu3_powerpc.deb) ... Unpacking replacement libc6-dev ... Preparing to replace libc-bin 2.13-9ubuntu2 (using .../libc-bin_2.13-9ubuntu3_powerpc.deb) ... Unpacking replacement libc-bin ... Setting up libc-bin (2.13-9ubuntu3) ... (Reading database ... 14120 files and directories currently installed.) Preparing to replace libc6 2.13-9ubuntu2 (using .../libc6_2.13-9ubuntu3_powerpc.deb) ... Unpacking replacement libc6 ... Setting up libc6 (2.13-9ubuntu3) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14120 files and directories currently installed.) Preparing to replace libudev0 172-0ubuntu3 (using .../libudev0_172-0ubuntu4_powerpc.deb) ... Unpacking replacement libudev0 ... Preparing to replace linux-libc-dev 3.0.0-5.6 (using .../linux-libc-dev_3.0.0-7.8_powerpc.deb) ... Unpacking replacement linux-libc-dev ... Preparing to replace libgomp1 4.6.1-4ubuntu1 (using .../libgomp1_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement libgomp1 ... Preparing to replace gcc-4.6-base 4.6.1-4ubuntu1 (using .../gcc-4.6-base_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement gcc-4.6-base ... Setting up gcc-4.6-base (4.6.1-5ubuntu2) ... (Reading database ... 14120 files and directories currently installed.) Preparing to replace libgcc1 1:4.6.1-4ubuntu1 (using .../libgcc1_1%3a4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement libgcc1 ... Setting up libgcc1 (1:4.6.1-5ubuntu2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14120 files and directories currently installed.) Preparing to replace cpp-4.6 4.6.1-4ubuntu1 (using .../cpp-4.6_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement cpp-4.6 ... Preparing to replace libstdc++6-4.6-dev 4.6.1-4ubuntu1 (using .../libstdc++6-4.6-dev_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement libstdc++6-4.6-dev ... Preparing to replace g++-4.6 4.6.1-4ubuntu1 (using .../g++-4.6_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement g++-4.6 ... Preparing to replace gcc-4.6 4.6.1-4ubuntu1 (using .../gcc-4.6_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement gcc-4.6 ... Preparing to replace libstdc++6 4.6.1-4ubuntu1 (using .../libstdc++6_4.6.1-5ubuntu2_powerpc.deb) ... Unpacking replacement libstdc++6 ... Setting up libstdc++6 (4.6.1-5ubuntu2) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14122 files and directories currently installed.) Preparing to replace base-passwd 3.5.22 (using .../base-passwd_3.5.23_powerpc.deb) ... Unpacking replacement base-passwd ... Setting up base-passwd (3.5.23) ... (Reading database ... 14124 files and directories currently installed.) Preparing to replace libattr1 1:2.4.46-1 (using .../libattr1_1%3a2.4.46-3_powerpc.deb) ... Unpacking replacement libattr1 ... Setting up libattr1 (1:2.4.46-3) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14124 files and directories currently installed.) Preparing to replace libacl1 2.2.51-1 (using .../libacl1_2.2.51-3_powerpc.deb) ... Unpacking replacement libacl1 ... Setting up libacl1 (2.2.51-3) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14124 files and directories currently installed.) Preparing to replace libglib2.0-0 2.29.10-0ubuntu2 (using .../libglib2.0-0_2.29.14-0ubuntu1_powerpc.deb) ... Unpacking replacement libglib2.0-0 ... Preparing to replace apt 0.8.15.2ubuntu1 (using .../apt_0.8.15.4ubuntu1_powerpc.deb) ... Unpacking replacement apt ... Setting up apt (0.8.15.4ubuntu1) ... 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 Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14124 files and directories currently installed.) Preparing to replace libusb-0.1-4 2:0.1.12-17 (using .../libusb-0.1-4_2%3a0.1.12-18_powerpc.deb) ... Unpacking replacement libusb-0.1-4 ... Setting up libusb-0.1-4 (2:0.1.12-18) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place (Reading database ... 14124 files and directories currently installed.) Preparing to replace multiarch-support 2.13-9ubuntu2 (using .../multiarch-support_2.13-9ubuntu3_powerpc.deb) ... Unpacking replacement multiarch-support ... Setting up multiarch-support (2.13-9ubuntu3) ... (Reading database ... 14124 files and directories currently installed.) Preparing to replace udev 172-0ubuntu3 (using .../udev_172-0ubuntu4_powerpc.deb) ... Adding 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev' Unpacking replacement udev ... Preparing to replace plymouth 0.8.2-2ubuntu24 (using .../plymouth_0.8.2-2ubuntu25_powerpc.deb) ... Unpacking replacement plymouth ... Preparing to replace libplymouth2 0.8.2-2ubuntu24 (using .../libplymouth2_0.8.2-2ubuntu25_powerpc.deb) ... Unpacking replacement libplymouth2 ... Preparing to replace apt-transport-https 0.8.15.2ubuntu1 (using .../apt-transport-https_0.8.15.4ubuntu1_powerpc.deb) ... Unpacking replacement apt-transport-https ... Preparing to replace cpp 4:4.6.1-2ubuntu2 (using .../cpp_4%3a4.6.1-2ubuntu3_powerpc.deb) ... Unpacking replacement cpp ... Preparing to replace gcc 4:4.6.1-2ubuntu2 (using .../gcc_4%3a4.6.1-2ubuntu3_powerpc.deb) ... Removing old gcc doc directory. Unpacking replacement gcc ... Preparing to replace g++ 4:4.6.1-2ubuntu2 (using .../g++_4%3a4.6.1-2ubuntu3_powerpc.deb) ... Unpacking replacement g++ ... Setting up libudev0 (172-0ubuntu4) ... Setting up upstart (1.3-0ubuntu4) ... Setting up libc-dev-bin (2.13-9ubuntu3) ... Setting up linux-libc-dev (3.0.0-7.8) ... Setting up libc6-dev (2.13-9ubuntu3) ... Setting up libgomp1 (4.6.1-5ubuntu2) ... Setting up cpp-4.6 (4.6.1-5ubuntu2) ... Setting up gcc-4.6 (4.6.1-5ubuntu2) ... Setting up libglib2.0-0 (2.29.14-0ubuntu1) ... Setting up udev (172-0ubuntu4) ... Removing 'diversion of /sbin/udevadm to /sbin/udevadm.upgrade by fake-udev' update-initramfs: deferring update (trigger activated) Setting up libplymouth2 (0.8.2-2ubuntu25) ... Setting up plymouth (0.8.2-2ubuntu25) ... update-initramfs: deferring update (trigger activated) Setting up apt-transport-https (0.8.15.4ubuntu1) ... Setting up cpp (4:4.6.1-2ubuntu3) ... Setting up gcc (4:4.6.1-2ubuntu3) ... Setting up libstdc++6-4.6-dev (4.6.1-5ubuntu2) ... Setting up g++-4.6 (4.6.1-5ubuntu2) ... Setting up g++ (4:4.6.1-2ubuntu3) ... 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', 'a8e0a4e66484fa908a9b90f594024999a7999d83', 'powerpc', 'oneiric', '--nolog', '--batch', '--archive=ubuntu', '--dist=oneiric', '--purpose=PRIMARY', '--architecture=powerpc', '--comp=main', 'hardening-wrapper_1.33.dsc'] Initiating build a8e0a4e66484fa908a9b90f594024999a7999d83 with 2 processor cores. Automatic build of hardening-wrapper_1.33 on adare by sbuild/powerpc 1.170.5 Build started at 20110727-1303 ****************************************************************************** hardening-wrapper_1.33.dsc exists in cwd sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) ** Using build dependencies supplied by package: Build-Depends: debhelper (>= 7) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) sh: gcc: not found dpkg-architecture: warning: Couldn't determine gcc system type, falling back to default (native compilation) Checking for already installed source dependencies... debhelper: missing 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 file gettext gettext-base groff-base html2text intltool-debian libcroco3 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 file gettext gettext-base groff-base html2text intltool-debian libcroco3 libmagic1 libpipeline1 libunistring0 libxml2 man-db po-debconf 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. Need to get 5489 kB of archives. After this operation, 18.9 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libpipeline1 libmagic1 file bsdmainutils gettext-base groff-base libxml2 man-db html2text libcroco3 libunistring0 gettext intltool-debian po-debconf debhelper Authentication warning overridden. Get:1 http://ftpmaster.internal/ubuntu/ oneiric/main libpipeline1 powerpc 1.2.0-3 [25.6 kB] Get:2 http://ftpmaster.internal/ubuntu/ oneiric/main libmagic1 powerpc 5.04-5ubuntu2 [212 kB] Get:3 http://ftpmaster.internal/ubuntu/ oneiric/main file powerpc 5.04-5ubuntu2 [22.6 kB] Get:4 http://ftpmaster.internal/ubuntu/ oneiric/main bsdmainutils powerpc 8.2.3 [197 kB] Get:5 http://ftpmaster.internal/ubuntu/ oneiric/main gettext-base powerpc 0.18.1.1-3ubuntu1 [57.4 kB] Get:6 http://ftpmaster.internal/ubuntu/ oneiric/main groff-base powerpc 1.21-6 [1044 kB] Get:7 http://ftpmaster.internal/ubuntu/ oneiric/main libxml2 powerpc 2.7.8.dfsg-3 [619 kB] Get:8 http://ftpmaster.internal/ubuntu/ oneiric/main man-db powerpc 2.6.0.2-2 [721 kB] Get:9 http://ftpmaster.internal/ubuntu/ oneiric/main html2text powerpc 1.3.2a-15 [106 kB] Get:10 http://ftpmaster.internal/ubuntu/ oneiric/main libcroco3 powerpc 0.6.2-1 [98.4 kB] Get:11 http://ftpmaster.internal/ubuntu/ oneiric/main libunistring0 powerpc 0.9.3-4 [410 kB] Get:12 http://ftpmaster.internal/ubuntu/ oneiric/main gettext powerpc 0.18.1.1-3ubuntu1 [1247 kB] Get:13 http://ftpmaster.internal/ubuntu/ oneiric/main intltool-debian all 0.35.0+20060710.1 [31.6 kB] Get:14 http://ftpmaster.internal/ubuntu/ oneiric/main po-debconf all 1.0.16+nmu1 [212 kB] Get:15 http://ftpmaster.internal/ubuntu/ oneiric/main debhelper all 8.9.0ubuntu1 [487 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 5489 kB in 0s (12.4 MB/s) Selecting previously deselected package libpipeline1. (Reading database ... 14124 files and directories currently installed.) Unpacking libpipeline1 (from .../libpipeline1_1.2.0-3_powerpc.deb) ... Selecting previously deselected package libmagic1. Unpacking libmagic1 (from .../libmagic1_5.04-5ubuntu2_powerpc.deb) ... Selecting previously deselected package file. Unpacking file (from .../file_5.04-5ubuntu2_powerpc.deb) ... Selecting previously deselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_8.2.3_powerpc.deb) ... Selecting previously deselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-3ubuntu1_powerpc.deb) ... Selecting previously deselected package groff-base. Unpacking groff-base (from .../groff-base_1.21-6_powerpc.deb) ... Selecting previously deselected package libxml2. Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-3_powerpc.deb) ... Selecting previously deselected package man-db. Unpacking man-db (from .../man-db_2.6.0.2-2_powerpc.deb) ... Selecting previously deselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_powerpc.deb) ... Selecting previously deselected package libcroco3. Unpacking libcroco3 (from .../libcroco3_0.6.2-1_powerpc.deb) ... Selecting previously deselected package libunistring0. Unpacking libunistring0 (from .../libunistring0_0.9.3-4_powerpc.deb) ... Selecting previously deselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-3ubuntu1_powerpc.deb) ... Selecting previously deselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously deselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu1_all.deb) ... Selecting previously deselected package debhelper. Unpacking debhelper (from .../debhelper_8.9.0ubuntu1_all.deb) ... Setting up libpipeline1 (1.2.0-3) ... Setting up libmagic1 (5.04-5ubuntu2) ... Setting up file (5.04-5ubuntu2) ... Setting up bsdmainutils (8.2.3) ... 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-3ubuntu1) ... Setting up groff-base (1.21-6) ... Setting up libxml2 (2.7.8.dfsg-3) ... Setting up man-db (2.6.0.2-2) ... Building database of manual pages ... Setting up html2text (1.3.2a-15) ... Setting up libcroco3 (0.6.2-1) ... Setting up libunistring0 (0.9.3-4) ... Setting up gettext (0.18.1.1-3ubuntu1) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu1) ... Setting up debhelper (8.9.0ubuntu1) ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place Checking correctness of source dependencies... Toolchain package versions: libc6-dev_2.13-9ubuntu3 make_3.81-8.1ubuntu1 dpkg-dev_1.16.0.3ubuntu3 gcc-4.6_4.6.1-5ubuntu2 g++-4.6_4.6.1-5ubuntu2 binutils_2.21.52.20110707-1ubuntu1 libstdc++6-4.6-dev_4.6.1-5ubuntu2 libstdc++6_4.6.1-5ubuntu2 ------------------------------------------------------------------------------ dpkg-source: warning: -sn is not a valid option for Dpkg::Source::Package::V3::native gpgv: Signature made Sun Jul 3 18:32:41 2011 UTC using RSA key ID DC6DC026 gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./hardening-wrapper_1.33.dsc dpkg-source: info: extracting hardening-wrapper in hardening-wrapper-1.33 dpkg-source: info: unpacking hardening-wrapper_1.33.tar.gz dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2 dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions dpkg-buildpackage: source package hardening-wrapper dpkg-buildpackage: source version 1.33 dpkg-source --before-build hardening-wrapper-1.33 dpkg-buildpackage: host architecture powerpc /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 CPU perl -pi -e 's/ #OS#/ '"linux"'/; s/ #CPU#/ '"powerpc"'/;' 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 (cd tests; make check) make[1]: Entering directory `/build/buildd/hardening-wrapper-1.33/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 (0x100004cc) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x202396f0) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x203be6f0) make -f Makefile.wrapper check make[2]: Entering directory `/build/buildd/hardening-wrapper-1.33/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 0x10000380 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x10000034 0x10000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x10000154 0x10000154 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x10000000 0x10000000 0x00840 0x00840 R E 0x10000 LOAD 0x000f04 0x10010f04 0x10010f04 0x0011c 0x00124 RW 0x10000 DYNAMIC 0x000f20 0x10010f20 0x10010f20 0x000d0 0x000d0 RW 0x4 NOTE 0x000164 0x10000164 0x10000164 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000800 0x10000800 0x10000800 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000f04 0x10010f04 0x10010f04 0x000fc 0x000fc R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .ctors .dtors .jcr .got2 .dynamic .got Dynamic section at offset 0xf20 contains 21 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x10000328 0x0000000d (FINI) 0x100007a0 0x6ffffef5 (GNU_HASH) 0x100001a8 0x00000005 (STRTAB) 0x10000238 0x00000006 (SYMTAB) 0x100001c8 0x0000000a (STRSZ) 105 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x10011000 0x00000002 (PLTRELSZ) 60 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x100002ec 0x70000000 (PPC_GOT) 0x10010ff4 0x00000007 (RELA) 0x100002e0 0x00000008 (RELASZ) 72 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x6ffffffe (VERNEED) 0x100002b0 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x100002a2 0x00000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x2e0 contains 1 entries: Offset Info Type Sym. Value Symbol's Name + Addend 10010ff0 00000314 R_PPC_GLOB_DAT 00000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x2ec contains 5 entries: Offset Info Type Sym. Value Symbol's Name + Addend 10011000 00000115 R_PPC_JMP_SLOT 00000000 printf + 0 10011004 00000215 R_PPC_JMP_SLOT 00000000 __stack_chk_fail + 0 10011008 00000315 R_PPC_JMP_SLOT 00000000 __gmon_start__ + 0 1001100c 00000415 R_PPC_JMP_SLOT 00000000 __libc_start_main + 0 10011010 00000515 R_PPC_JMP_SLOT 00000000 snprintf + 0 Symbol table '.dynsym' contains 7 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.4 (2) 2: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 3: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 4: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (3) 5: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 6: 100007e8 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used Symbol table '.symtab' contains 71 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 10000154 0 SECTION LOCAL DEFAULT 1 2: 10000164 0 SECTION LOCAL DEFAULT 2 3: 10000184 0 SECTION LOCAL DEFAULT 3 4: 100001a8 0 SECTION LOCAL DEFAULT 4 5: 100001c8 0 SECTION LOCAL DEFAULT 5 6: 10000238 0 SECTION LOCAL DEFAULT 6 7: 100002a2 0 SECTION LOCAL DEFAULT 7 8: 100002b0 0 SECTION LOCAL DEFAULT 8 9: 100002e0 0 SECTION LOCAL DEFAULT 9 10: 100002ec 0 SECTION LOCAL DEFAULT 10 11: 10000328 0 SECTION LOCAL DEFAULT 11 12: 10000380 0 SECTION LOCAL DEFAULT 12 13: 100007a0 0 SECTION LOCAL DEFAULT 13 14: 100007d8 0 SECTION LOCAL DEFAULT 14 15: 10000800 0 SECTION LOCAL DEFAULT 15 16: 10000814 0 SECTION LOCAL DEFAULT 16 17: 10010f04 0 SECTION LOCAL DEFAULT 17 18: 10010f0c 0 SECTION LOCAL DEFAULT 18 19: 10010f14 0 SECTION LOCAL DEFAULT 19 20: 10010f18 0 SECTION LOCAL DEFAULT 20 21: 10010f20 0 SECTION LOCAL DEFAULT 21 22: 10010ff0 0 SECTION LOCAL DEFAULT 22 23: 10011000 0 SECTION LOCAL DEFAULT 23 24: 10011014 0 SECTION LOCAL DEFAULT 24 25: 10011020 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 29: 10010f04 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__ 30: 10010f0c 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__ 31: 10010f14 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 32: 100003a4 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux 33: 10011020 1 OBJECT LOCAL DEFAULT 25 completed.6808 34: 10011024 4 OBJECT LOCAL DEFAULT 25 dtor_idx.6810 35: 1000044c 0 FUNC LOCAL DEFAULT 12 call___do_global_dtors_aux 36: 10000468 0 FUNC LOCAL DEFAULT 12 frame_dummy 37: 100004b0 0 FUNC LOCAL DEFAULT 12 call_frame_dummy 38: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 39: 10010f08 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__ 40: 1000083c 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 41: 10010f14 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 42: 10000694 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux 43: 100006e4 0 FUNC LOCAL DEFAULT 12 call___do_global_ctors_aux 44: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 45: 10010f04 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 46: 10010f20 0 OBJECT LOCAL DEFAULT 21 _DYNAMIC 47: 10010f04 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 48: 10010ff4 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_ 49: 10000690 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini 50: 10011014 0 NOTYPE WEAK DEFAULT 24 data_start 51: 00000000 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.4 52: 10011020 0 NOTYPE GLOBAL DEFAULT ABS _edata 53: 100007a0 0 FUNC GLOBAL DEFAULT 13 _fini 54: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 55: 10010f10 0 OBJECT GLOBAL HIDDEN 18 __DTOR_END__ 56: 10011014 0 NOTYPE GLOBAL DEFAULT 24 __data_start 57: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 58: 1001101c 0 OBJECT GLOBAL HIDDEN 24 __dso_handle 59: 100004cc 168 FUNC GLOBAL DEFAULT 12 announcement 60: 100007e8 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 61: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.0 62: 100005d0 192 FUNC GLOBAL DEFAULT 12 __libc_csu_init 63: 10019020 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ 64: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 65: 10011028 0 NOTYPE GLOBAL DEFAULT ABS _end 66: 10000380 36 FUNC GLOBAL DEFAULT 12 _start 67: 10011020 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 68: 10000574 92 FUNC GLOBAL DEFAULT 12 main 69: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 70: 10000328 0 FUNC GLOBAL DEFAULT 11 _init ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0x100004cc) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -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 0x5a0 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x00000000 0x00000000 0x00a90 0x00a90 R E 0x10000 LOAD 0x000ed4 0x00010ed4 0x00010ed4 0x00160 0x00168 RW 0x10000 DYNAMIC 0x000f20 0x00010f20 0x00010f20 0x000d0 0x000d0 RW 0x4 NOTE 0x000164 0x00000164 0x00000164 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000a50 0x00000a50 0x00000a50 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000ed4 0x00010ed4 0x00010ed4 0x0012c 0x0012c R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .ctors .dtors .jcr .got2 .dynamic .got Dynamic section at offset 0xf20 contains 22 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x518 0x0000000d (FINI) 0xa00 0x6ffffef5 (GNU_HASH) 0x1a8 0x00000005 (STRTAB) 0x2bc 0x00000006 (SYMTAB) 0x1dc 0x0000000a (STRSZ) 200 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x11000 0x00000002 (PLTRELSZ) 72 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x4d0 0x70000000 (PPC_GOT) 0x10ff4 0x00000007 (RELA) 0x3e0 0x00000008 (RELASZ) 312 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x6ffffffe (VERNEED) 0x3a0 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x384 0x6ffffff9 (RELACOUNT) 17 0x00000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x3e0 contains 20 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010ee8 00000016 R_PPC_RELATIVE 00011034 00010ef0 00000016 R_PPC_RELATIVE 00011030 00010ef4 00000016 R_PPC_RELATIVE 00011038 00010ef8 00000016 R_PPC_RELATIVE 00010ee0 00010efc 00000016 R_PPC_RELATIVE 00010edc 00010f00 00000016 R_PPC_RELATIVE 00010ee4 00010f08 00000016 R_PPC_RELATIVE 00000a3c 00010f0c 00000016 R_PPC_RELATIVE 00000a40 00010f10 00000016 R_PPC_RELATIVE 00000730 00010f14 00000016 R_PPC_RELATIVE 00010ed4 00010f18 00000016 R_PPC_RELATIVE 00010ed4 00010f1c 00000016 R_PPC_RELATIVE 00010ed8 00011018 00000016 R_PPC_RELATIVE 00019034 0001101c 00000016 R_PPC_RELATIVE 00000570 00011020 00000016 R_PPC_RELATIVE 000007c0 00011024 00000016 R_PPC_RELATIVE 00000880 00011030 00000016 R_PPC_RELATIVE 00011030 00010eec 00000301 R_PPC_ADDR32 00000000 __cxa_finalize + 0 00010f04 00000801 R_PPC_ADDR32 00000000 _Jv_RegisterClasses + 0 00010ff0 00000414 R_PPC_GLOB_DAT 00000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x4d0 contains 6 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00011000 00000215 R_PPC_JMP_SLOT 00000000 __stack_chk_fail + 0 00011004 00000315 R_PPC_JMP_SLOT 00000000 __cxa_finalize + 0 00011008 00000415 R_PPC_JMP_SLOT 00000000 __gmon_start__ + 0 0001100c 00000515 R_PPC_JMP_SLOT 00000000 __libc_start_main + 0 00011010 00000615 R_PPC_JMP_SLOT 00000000 snprintf + 0 00011014 00000715 R_PPC_JMP_SLOT 00000000 __printf_chk + 0 Symbol table '.dynsym' contains 14 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (3) 4: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 5: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (4) 6: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 7: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 9: 00011034 0 NOTYPE GLOBAL DEFAULT ABS _edata 10: 0001103c 0 NOTYPE GLOBAL DEFAULT ABS _end 11: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 12: 00011034 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 13: 00019034 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ Symbol table '.symtab' contains 89 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000164 0 SECTION LOCAL DEFAULT 2 3: 00000184 0 SECTION LOCAL DEFAULT 3 4: 000001a8 0 SECTION LOCAL DEFAULT 4 5: 000001dc 0 SECTION LOCAL DEFAULT 5 6: 000002bc 0 SECTION LOCAL DEFAULT 6 7: 00000384 0 SECTION LOCAL DEFAULT 7 8: 000003a0 0 SECTION LOCAL DEFAULT 8 9: 000003e0 0 SECTION LOCAL DEFAULT 9 10: 000004d0 0 SECTION LOCAL DEFAULT 10 11: 00000518 0 SECTION LOCAL DEFAULT 11 12: 00000570 0 SECTION LOCAL DEFAULT 12 13: 00000a00 0 SECTION LOCAL DEFAULT 13 14: 00000a38 0 SECTION LOCAL DEFAULT 14 15: 00000a50 0 SECTION LOCAL DEFAULT 15 16: 00000a64 0 SECTION LOCAL DEFAULT 16 17: 00010ed4 0 SECTION LOCAL DEFAULT 17 18: 00010edc 0 SECTION LOCAL DEFAULT 18 19: 00010ee4 0 SECTION LOCAL DEFAULT 19 20: 00010ee8 0 SECTION LOCAL DEFAULT 20 21: 00010f20 0 SECTION LOCAL DEFAULT 21 22: 00010ff0 0 SECTION LOCAL DEFAULT 22 23: 00011000 0 SECTION LOCAL DEFAULT 23 24: 00011018 0 SECTION LOCAL DEFAULT 24 25: 00011034 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: 00000000 0 SECTION LOCAL DEFAULT 35 36: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 37: 00010ed4 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__ 38: 00010edc 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__ 39: 00010ee4 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 40: 00011034 1 OBJECT LOCAL DEFAULT 25 completed.6808 41: 00011038 4 OBJECT LOCAL DEFAULT 25 dtor_idx.6810 42: 000005d4 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux 43: 000006a0 0 FUNC LOCAL DEFAULT 12 call___do_global_dtors_aux 44: 000006bc 0 FUNC LOCAL DEFAULT 12 frame_dummy 45: 00000714 0 FUNC LOCAL DEFAULT 12 call_frame_dummy 46: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 47: 00010ed8 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__ 48: 00000a8c 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 49: 00010ee4 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 50: 000008b4 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux 51: 00000918 0 FUNC LOCAL DEFAULT 12 call___do_global_ctors_aux 52: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 53: 00000970 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__libc_start_main@@GLIBC_2.0 54: 00000980 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.snprintf@@GLIBC_2.4 55: 00000990 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__printf_chk@@GLIBC_2.4 56: 00000940 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 57: 00000960 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__gmon_start__ 58: 00000950 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__cxa_finalize@@GLIBC_2.1.3 59: 000009c0 0 NOTYPE LOCAL DEFAULT 12 __glink_PLTresolve 60: 00010ee0 0 OBJECT LOCAL DEFAULT 18 __DTOR_END__ 61: 00010ed4 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 62: 00011030 0 OBJECT LOCAL DEFAULT 24 __dso_handle 63: 00010f20 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 64: 00010ed4 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 65: 000009a0 0 NOTYPE LOCAL DEFAULT 12 __glink 66: 00010ff4 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 67: 00000880 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini 68: 00011028 0 NOTYPE WEAK DEFAULT 24 data_start 69: 00011034 0 NOTYPE GLOBAL DEFAULT ABS _edata 70: 00000a00 0 FUNC GLOBAL DEFAULT 13 _fini 71: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 72: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.1.3 73: 00011028 0 NOTYPE GLOBAL DEFAULT 24 __data_start 74: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 75: 00000730 136 FUNC GLOBAL DEFAULT 12 announcement 76: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 77: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.0 78: 000007c0 192 FUNC GLOBAL DEFAULT 12 __libc_csu_init 79: 00019034 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ 80: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 81: 0001103c 0 NOTYPE GLOBAL DEFAULT ABS _end 82: 000005a0 52 FUNC GLOBAL DEFAULT 12 _start 83: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 84: 00011034 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 85: 00000570 48 FUNC GLOBAL DEFAULT 12 main 86: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 87: 00000890 36 FUNC GLOBAL HIDDEN 12 __stack_chk_fail_local 88: 00000518 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 (0x205f2730) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x2070e730) # 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 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -o ../build-tree/wrapper-test-linked hello.c /usr/bin/ld.bfd -z now --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 -pie -z relro -o ../build-tree/wrapper-test-linked /usr/lib/powerpc-linux-gnu/Scrt1.o /usr/lib/powerpc-linux-gnu/crti.o /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtbeginS.o -L../build-tree -L/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1 -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/../../.. -Bsymbolic-functions /tmp/cciclWSr.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtendS.o /usr/lib/powerpc-linux-gnu/crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is DYN (Shared object file) Entry point 0x5a0 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x00000000 0x00000000 0x00a90 0x00a90 R E 0x10000 LOAD 0x000eac 0x00010eac 0x00010eac 0x00170 0x00178 RW 0x10000 DYNAMIC 0x000ef8 0x00010ef8 0x00010ef8 0x000e0 0x000e0 RW 0x4 NOTE 0x000164 0x00000164 0x00000164 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000a50 0x00000a50 0x00000a50 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000eac 0x00010eac 0x00010eac 0x00154 0x00154 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .ctors .dtors .jcr .got2 .dynamic .got .plt Dynamic section at offset 0xef8 contains 24 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x518 0x0000000d (FINI) 0xa00 0x6ffffef5 (GNU_HASH) 0x1a8 0x00000005 (STRTAB) 0x2bc 0x00000006 (SYMTAB) 0x1dc 0x0000000a (STRSZ) 200 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x10fe8 0x00000002 (PLTRELSZ) 72 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x4d0 0x70000000 (PPC_GOT) 0x10fdc 0x00000007 (RELA) 0x3e0 0x00000008 (RELASZ) 312 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW 0x6ffffffe (VERNEED) 0x3a0 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x384 0x6ffffff9 (RELACOUNT) 17 0x00000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x3e0 contains 20 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010ec0 00000016 R_PPC_RELATIVE 0001101c 00010ec8 00000016 R_PPC_RELATIVE 00011018 00010ecc 00000016 R_PPC_RELATIVE 00011020 00010ed0 00000016 R_PPC_RELATIVE 00010eb8 00010ed4 00000016 R_PPC_RELATIVE 00010eb4 00010ed8 00000016 R_PPC_RELATIVE 00010ebc 00010ee0 00000016 R_PPC_RELATIVE 00000a3c 00010ee4 00000016 R_PPC_RELATIVE 00000a40 00010ee8 00000016 R_PPC_RELATIVE 00000730 00010eec 00000016 R_PPC_RELATIVE 00010eac 00010ef0 00000016 R_PPC_RELATIVE 00010eac 00010ef4 00000016 R_PPC_RELATIVE 00010eb0 00011000 00000016 R_PPC_RELATIVE 0001901c 00011004 00000016 R_PPC_RELATIVE 00000570 00011008 00000016 R_PPC_RELATIVE 000007c0 0001100c 00000016 R_PPC_RELATIVE 00000880 00011018 00000016 R_PPC_RELATIVE 00011018 00010ec4 00000301 R_PPC_ADDR32 00000000 __cxa_finalize + 0 00010edc 00000801 R_PPC_ADDR32 00000000 _Jv_RegisterClasses + 0 00010fd8 00000414 R_PPC_GLOB_DAT 00000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x4d0 contains 6 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010fe8 00000215 R_PPC_JMP_SLOT 00000000 __stack_chk_fail + 0 00010fec 00000315 R_PPC_JMP_SLOT 00000000 __cxa_finalize + 0 00010ff0 00000415 R_PPC_JMP_SLOT 00000000 __gmon_start__ + 0 00010ff4 00000515 R_PPC_JMP_SLOT 00000000 __libc_start_main + 0 00010ff8 00000615 R_PPC_JMP_SLOT 00000000 snprintf + 0 00010ffc 00000715 R_PPC_JMP_SLOT 00000000 __printf_chk + 0 Symbol table '.dynsym' contains 14 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (3) 4: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 5: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (4) 6: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 7: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 9: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS _edata 10: 00011024 0 NOTYPE GLOBAL DEFAULT ABS _end 11: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 12: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 13: 0001901c 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ Symbol table '.symtab' contains 89 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000164 0 SECTION LOCAL DEFAULT 2 3: 00000184 0 SECTION LOCAL DEFAULT 3 4: 000001a8 0 SECTION LOCAL DEFAULT 4 5: 000001dc 0 SECTION LOCAL DEFAULT 5 6: 000002bc 0 SECTION LOCAL DEFAULT 6 7: 00000384 0 SECTION LOCAL DEFAULT 7 8: 000003a0 0 SECTION LOCAL DEFAULT 8 9: 000003e0 0 SECTION LOCAL DEFAULT 9 10: 000004d0 0 SECTION LOCAL DEFAULT 10 11: 00000518 0 SECTION LOCAL DEFAULT 11 12: 00000570 0 SECTION LOCAL DEFAULT 12 13: 00000a00 0 SECTION LOCAL DEFAULT 13 14: 00000a38 0 SECTION LOCAL DEFAULT 14 15: 00000a50 0 SECTION LOCAL DEFAULT 15 16: 00000a64 0 SECTION LOCAL DEFAULT 16 17: 00010eac 0 SECTION LOCAL DEFAULT 17 18: 00010eb4 0 SECTION LOCAL DEFAULT 18 19: 00010ebc 0 SECTION LOCAL DEFAULT 19 20: 00010ec0 0 SECTION LOCAL DEFAULT 20 21: 00010ef8 0 SECTION LOCAL DEFAULT 21 22: 00010fd8 0 SECTION LOCAL DEFAULT 22 23: 00010fe8 0 SECTION LOCAL DEFAULT 23 24: 00011000 0 SECTION LOCAL DEFAULT 24 25: 0001101c 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: 00000000 0 SECTION LOCAL DEFAULT 35 36: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 37: 00010eac 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__ 38: 00010eb4 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__ 39: 00010ebc 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 40: 0001101c 1 OBJECT LOCAL DEFAULT 25 completed.6808 41: 00011020 4 OBJECT LOCAL DEFAULT 25 dtor_idx.6810 42: 000005d4 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux 43: 000006a0 0 FUNC LOCAL DEFAULT 12 call___do_global_dtors_aux 44: 000006bc 0 FUNC LOCAL DEFAULT 12 frame_dummy 45: 00000714 0 FUNC LOCAL DEFAULT 12 call_frame_dummy 46: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 47: 00010eb0 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__ 48: 00000a8c 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 49: 00010ebc 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 50: 000008b4 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux 51: 00000918 0 FUNC LOCAL DEFAULT 12 call___do_global_ctors_aux 52: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 53: 00000970 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__libc_start_main@@GLIBC_2.0 54: 00000980 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.snprintf@@GLIBC_2.4 55: 00000990 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__printf_chk@@GLIBC_2.4 56: 00000940 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 57: 00000960 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__gmon_start__ 58: 00000950 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__cxa_finalize@@GLIBC_2.1.3 59: 000009c0 0 NOTYPE LOCAL DEFAULT 12 __glink_PLTresolve 60: 00010eb8 0 OBJECT LOCAL DEFAULT 18 __DTOR_END__ 61: 00010eac 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 62: 00011018 0 OBJECT LOCAL DEFAULT 24 __dso_handle 63: 00010ef8 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 64: 00010eac 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 65: 000009a0 0 NOTYPE LOCAL DEFAULT 12 __glink 66: 00010fdc 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 67: 00000880 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini 68: 00011010 0 NOTYPE WEAK DEFAULT 24 data_start 69: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS _edata 70: 00000a00 0 FUNC GLOBAL DEFAULT 13 _fini 71: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 72: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.1.3 73: 00011010 0 NOTYPE GLOBAL DEFAULT 24 __data_start 74: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 75: 00000730 136 FUNC GLOBAL DEFAULT 12 announcement 76: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 77: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.0 78: 000007c0 192 FUNC GLOBAL DEFAULT 12 __libc_csu_init 79: 0001901c 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ 80: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 81: 00011024 0 NOTYPE GLOBAL DEFAULT ABS _end 82: 000005a0 52 FUNC GLOBAL DEFAULT 12 _start 83: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 84: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 85: 00000570 48 FUNC GLOBAL DEFAULT 12 main 86: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 87: 00000890 36 FUNC GLOBAL HIDDEN 12 __stack_chk_fail_local 88: 00000518 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 (0x2061d730) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x207b5730) # Check state of hardening features via check script sh ../hardening-check ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes 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)' 00000940 t 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 U __stack_chk_fail@@GLIBC_2.4 # Test Fortify nm ../build-tree/wrapper-test-linked | egrep '__(sn)?printf_chk($|@@GLIBC)' 00000990 t 00008000.got2.plt_pic32.__printf_chk@@GLIBC_2.4 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 0x000eac 0x00010eac 0x00010eac 0x00154 0x00154 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 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/ld.bfd -z now --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 -pie -z relro -o ../build-tree/wrapper-test-fPIC-direct /usr/lib/powerpc-linux-gnu/Scrt1.o /usr/lib/powerpc-linux-gnu/crti.o /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtbeginS.o -L../build-tree -L/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1 -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/../../.. -Bsymbolic-functions /tmp/ccAW7N1c.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtendS.o /usr/lib/powerpc-linux-gnu/crtn.o ../build-tree/wrapper-test-fPIC-direct ../build-tree/wrapper-test-fPIC-direct: ok (0x20333748) # Build .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/ld.bfd -z now --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 -pie -z relro -o ../build-tree/wrapper-test-fPIC /usr/lib/powerpc-linux-gnu/Scrt1.o /usr/lib/powerpc-linux-gnu/crti.o /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtbeginS.o -L../build-tree -L/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1 -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/../../.. -Bsymbolic-functions ../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/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtendS.o /usr/lib/powerpc-linux-gnu/crtn.o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC: ok (0x20140748) # Make sure build fails due to -Werror=format-security ! ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wno-format-security -Wl,-Bsymbolic-functions -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 -O2 -Wno-format-security -Wl,-Bsymbolic-functions -o ../build-tree/wrapper-test-format-security format.c /usr/bin/ld.bfd -z now --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 -pie -z relro -o ../build-tree/wrapper-test-format-security /usr/lib/powerpc-linux-gnu/Scrt1.o /usr/lib/powerpc-linux-gnu/crti.o /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtbeginS.o -L../build-tree -L/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1 -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/../../.. -Bsymbolic-functions /tmp/ccaaZR3n.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtendS.o /usr/lib/powerpc-linux-gnu/crtn.o # Make sure build stack-protects a small ssp buffer ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -o ../build-tree/wrapper-test-ssp-buffer-size-protect ssp-buffer-size-protect.c /usr/bin/ld.bfd -z now --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 -pie -z relro -o ../build-tree/wrapper-test-ssp-buffer-size-protect /usr/lib/powerpc-linux-gnu/Scrt1.o /usr/lib/powerpc-linux-gnu/crti.o /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtbeginS.o -L../build-tree -L/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1 -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/../../.. -Bsymbolic-functions /tmp/ccWABbLU.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtendS.o /usr/lib/powerpc-linux-gnu/crtn.o # Test Stack Protector nm ../build-tree/wrapper-test-ssp-buffer-size-protect | egrep '__stack_chk_fail($|@@GLIBC)' 00000940 t 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 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 -O2 -Wl,-Bsymbolic-functions -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 -O2 -Wl,-Bsymbolic-functions -o ../build-tree/wrapper-test-ssp-buffer-size-skip ssp-buffer-size-skip.c /usr/bin/ld.bfd -z now --build-id --no-add-needed --as-needed --eh-frame-hdr -m elf32ppclinux --hash-style=gnu -dynamic-linker /lib/ld.so.1 -pie -z relro -o ../build-tree/wrapper-test-ssp-buffer-size-skip /usr/lib/powerpc-linux-gnu/Scrt1.o /usr/lib/powerpc-linux-gnu/crti.o /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtbeginS.o -L../build-tree -L/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1 -L/usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/../../.. -Bsymbolic-functions /tmp/cco9aQQy.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/powerpc-linux-gnu/gcc/powerpc-linux-gnu/4.6.1/crtendS.o /usr/lib/powerpc-linux-gnu/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.33/tests' make -f Makefile.includes check make[2]: Entering directory `/build/buildd/hardening-wrapper-1.33/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 0x10000380 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x10000034 0x10000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x10000154 0x10000154 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x10000000 0x10000000 0x00840 0x00840 R E 0x10000 LOAD 0x000f04 0x10010f04 0x10010f04 0x0011c 0x00124 RW 0x10000 DYNAMIC 0x000f20 0x10010f20 0x10010f20 0x000d0 0x000d0 RW 0x4 NOTE 0x000164 0x10000164 0x10000164 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000800 0x10000800 0x10000800 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000f04 0x10010f04 0x10010f04 0x000fc 0x000fc R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .ctors .dtors .jcr .got2 .dynamic .got Dynamic section at offset 0xf20 contains 21 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x10000328 0x0000000d (FINI) 0x100007a0 0x6ffffef5 (GNU_HASH) 0x100001a8 0x00000005 (STRTAB) 0x10000238 0x00000006 (SYMTAB) 0x100001c8 0x0000000a (STRSZ) 105 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x10011000 0x00000002 (PLTRELSZ) 60 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x100002ec 0x70000000 (PPC_GOT) 0x10010ff4 0x00000007 (RELA) 0x100002e0 0x00000008 (RELASZ) 72 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x6ffffffe (VERNEED) 0x100002b0 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x100002a2 0x00000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x2e0 contains 1 entries: Offset Info Type Sym. Value Symbol's Name + Addend 10010ff0 00000314 R_PPC_GLOB_DAT 00000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x2ec contains 5 entries: Offset Info Type Sym. Value Symbol's Name + Addend 10011000 00000115 R_PPC_JMP_SLOT 00000000 printf + 0 10011004 00000215 R_PPC_JMP_SLOT 00000000 __stack_chk_fail + 0 10011008 00000315 R_PPC_JMP_SLOT 00000000 __gmon_start__ + 0 1001100c 00000415 R_PPC_JMP_SLOT 00000000 __libc_start_main + 0 10011010 00000515 R_PPC_JMP_SLOT 00000000 snprintf + 0 Symbol table '.dynsym' contains 7 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.4 (2) 2: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 3: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 4: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (3) 5: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 6: 100007e8 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used Symbol table '.symtab' contains 71 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 10000154 0 SECTION LOCAL DEFAULT 1 2: 10000164 0 SECTION LOCAL DEFAULT 2 3: 10000184 0 SECTION LOCAL DEFAULT 3 4: 100001a8 0 SECTION LOCAL DEFAULT 4 5: 100001c8 0 SECTION LOCAL DEFAULT 5 6: 10000238 0 SECTION LOCAL DEFAULT 6 7: 100002a2 0 SECTION LOCAL DEFAULT 7 8: 100002b0 0 SECTION LOCAL DEFAULT 8 9: 100002e0 0 SECTION LOCAL DEFAULT 9 10: 100002ec 0 SECTION LOCAL DEFAULT 10 11: 10000328 0 SECTION LOCAL DEFAULT 11 12: 10000380 0 SECTION LOCAL DEFAULT 12 13: 100007a0 0 SECTION LOCAL DEFAULT 13 14: 100007d8 0 SECTION LOCAL DEFAULT 14 15: 10000800 0 SECTION LOCAL DEFAULT 15 16: 10000814 0 SECTION LOCAL DEFAULT 16 17: 10010f04 0 SECTION LOCAL DEFAULT 17 18: 10010f0c 0 SECTION LOCAL DEFAULT 18 19: 10010f14 0 SECTION LOCAL DEFAULT 19 20: 10010f18 0 SECTION LOCAL DEFAULT 20 21: 10010f20 0 SECTION LOCAL DEFAULT 21 22: 10010ff0 0 SECTION LOCAL DEFAULT 22 23: 10011000 0 SECTION LOCAL DEFAULT 23 24: 10011014 0 SECTION LOCAL DEFAULT 24 25: 10011020 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 29: 10010f04 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__ 30: 10010f0c 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__ 31: 10010f14 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 32: 100003a4 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux 33: 10011020 1 OBJECT LOCAL DEFAULT 25 completed.6808 34: 10011024 4 OBJECT LOCAL DEFAULT 25 dtor_idx.6810 35: 1000044c 0 FUNC LOCAL DEFAULT 12 call___do_global_dtors_aux 36: 10000468 0 FUNC LOCAL DEFAULT 12 frame_dummy 37: 100004b0 0 FUNC LOCAL DEFAULT 12 call_frame_dummy 38: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 39: 10010f08 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__ 40: 1000083c 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 41: 10010f14 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 42: 10000694 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux 43: 100006e4 0 FUNC LOCAL DEFAULT 12 call___do_global_ctors_aux 44: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 45: 10010f04 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 46: 10010f20 0 OBJECT LOCAL DEFAULT 21 _DYNAMIC 47: 10010f04 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 48: 10010ff4 0 OBJECT LOCAL DEFAULT 22 _GLOBAL_OFFSET_TABLE_ 49: 10000690 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini 50: 10011014 0 NOTYPE WEAK DEFAULT 24 data_start 51: 00000000 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.4 52: 10011020 0 NOTYPE GLOBAL DEFAULT ABS _edata 53: 100007a0 0 FUNC GLOBAL DEFAULT 13 _fini 54: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 55: 10010f10 0 OBJECT GLOBAL HIDDEN 18 __DTOR_END__ 56: 10011014 0 NOTYPE GLOBAL DEFAULT 24 __data_start 57: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 58: 1001101c 0 OBJECT GLOBAL HIDDEN 24 __dso_handle 59: 100004cc 168 FUNC GLOBAL DEFAULT 12 announcement 60: 100007e8 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 61: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.0 62: 100005d0 192 FUNC GLOBAL DEFAULT 12 __libc_csu_init 63: 10019020 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ 64: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 65: 10011028 0 NOTYPE GLOBAL DEFAULT ABS _end 66: 10000380 36 FUNC GLOBAL DEFAULT 12 _start 67: 10011020 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 68: 10000574 92 FUNC GLOBAL DEFAULT 12 main 69: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 70: 10000328 0 FUNC GLOBAL DEFAULT 11 _init ../build-tree/includes-test-stock ../build-tree/includes-test-stock: ok (0x100004cc) # Compiler options enabled. (linker is not wrapper) cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 0x5a0 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x00000000 0x00000000 0x00a90 0x00a90 R E 0x10000 LOAD 0x000eac 0x00010eac 0x00010eac 0x00170 0x00178 RW 0x10000 DYNAMIC 0x000ef8 0x00010ef8 0x00010ef8 0x000e0 0x000e0 RW 0x4 NOTE 0x000164 0x00000164 0x00000164 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000a50 0x00000a50 0x00000a50 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000eac 0x00010eac 0x00010eac 0x00154 0x00154 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .ctors .dtors .jcr .got2 .dynamic .got .plt Dynamic section at offset 0xef8 contains 24 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x518 0x0000000d (FINI) 0xa00 0x6ffffef5 (GNU_HASH) 0x1a8 0x00000005 (STRTAB) 0x2bc 0x00000006 (SYMTAB) 0x1dc 0x0000000a (STRSZ) 200 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x10fe8 0x00000002 (PLTRELSZ) 72 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x4d0 0x70000000 (PPC_GOT) 0x10fdc 0x00000007 (RELA) 0x3e0 0x00000008 (RELASZ) 312 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW 0x6ffffffe (VERNEED) 0x3a0 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x384 0x6ffffff9 (RELACOUNT) 17 0x00000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x3e0 contains 20 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010ec0 00000016 R_PPC_RELATIVE 0001101c 00010ec8 00000016 R_PPC_RELATIVE 00011018 00010ecc 00000016 R_PPC_RELATIVE 00011020 00010ed0 00000016 R_PPC_RELATIVE 00010eb8 00010ed4 00000016 R_PPC_RELATIVE 00010eb4 00010ed8 00000016 R_PPC_RELATIVE 00010ebc 00010ee0 00000016 R_PPC_RELATIVE 00000a3c 00010ee4 00000016 R_PPC_RELATIVE 00000a40 00010ee8 00000016 R_PPC_RELATIVE 00000730 00010eec 00000016 R_PPC_RELATIVE 00010eac 00010ef0 00000016 R_PPC_RELATIVE 00010eac 00010ef4 00000016 R_PPC_RELATIVE 00010eb0 00011000 00000016 R_PPC_RELATIVE 0001901c 00011004 00000016 R_PPC_RELATIVE 00000570 00011008 00000016 R_PPC_RELATIVE 000007c0 0001100c 00000016 R_PPC_RELATIVE 00000880 00011018 00000016 R_PPC_RELATIVE 00011018 00010ec4 00000301 R_PPC_ADDR32 00000000 __cxa_finalize + 0 00010edc 00000801 R_PPC_ADDR32 00000000 _Jv_RegisterClasses + 0 00010fd8 00000414 R_PPC_GLOB_DAT 00000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x4d0 contains 6 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010fe8 00000215 R_PPC_JMP_SLOT 00000000 __stack_chk_fail + 0 00010fec 00000315 R_PPC_JMP_SLOT 00000000 __cxa_finalize + 0 00010ff0 00000415 R_PPC_JMP_SLOT 00000000 __gmon_start__ + 0 00010ff4 00000515 R_PPC_JMP_SLOT 00000000 __libc_start_main + 0 00010ff8 00000615 R_PPC_JMP_SLOT 00000000 snprintf + 0 00010ffc 00000715 R_PPC_JMP_SLOT 00000000 __printf_chk + 0 Symbol table '.dynsym' contains 14 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (3) 4: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 5: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (4) 6: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 7: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 9: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS _edata 10: 00011024 0 NOTYPE GLOBAL DEFAULT ABS _end 11: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 12: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 13: 0001901c 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ Symbol table '.symtab' contains 89 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000164 0 SECTION LOCAL DEFAULT 2 3: 00000184 0 SECTION LOCAL DEFAULT 3 4: 000001a8 0 SECTION LOCAL DEFAULT 4 5: 000001dc 0 SECTION LOCAL DEFAULT 5 6: 000002bc 0 SECTION LOCAL DEFAULT 6 7: 00000384 0 SECTION LOCAL DEFAULT 7 8: 000003a0 0 SECTION LOCAL DEFAULT 8 9: 000003e0 0 SECTION LOCAL DEFAULT 9 10: 000004d0 0 SECTION LOCAL DEFAULT 10 11: 00000518 0 SECTION LOCAL DEFAULT 11 12: 00000570 0 SECTION LOCAL DEFAULT 12 13: 00000a00 0 SECTION LOCAL DEFAULT 13 14: 00000a38 0 SECTION LOCAL DEFAULT 14 15: 00000a50 0 SECTION LOCAL DEFAULT 15 16: 00000a64 0 SECTION LOCAL DEFAULT 16 17: 00010eac 0 SECTION LOCAL DEFAULT 17 18: 00010eb4 0 SECTION LOCAL DEFAULT 18 19: 00010ebc 0 SECTION LOCAL DEFAULT 19 20: 00010ec0 0 SECTION LOCAL DEFAULT 20 21: 00010ef8 0 SECTION LOCAL DEFAULT 21 22: 00010fd8 0 SECTION LOCAL DEFAULT 22 23: 00010fe8 0 SECTION LOCAL DEFAULT 23 24: 00011000 0 SECTION LOCAL DEFAULT 24 25: 0001101c 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: 00000000 0 SECTION LOCAL DEFAULT 35 36: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 37: 00010eac 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__ 38: 00010eb4 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__ 39: 00010ebc 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 40: 0001101c 1 OBJECT LOCAL DEFAULT 25 completed.6808 41: 00011020 4 OBJECT LOCAL DEFAULT 25 dtor_idx.6810 42: 000005d4 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux 43: 000006a0 0 FUNC LOCAL DEFAULT 12 call___do_global_dtors_aux 44: 000006bc 0 FUNC LOCAL DEFAULT 12 frame_dummy 45: 00000714 0 FUNC LOCAL DEFAULT 12 call_frame_dummy 46: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 47: 00010eb0 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__ 48: 00000a8c 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 49: 00010ebc 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 50: 000008b4 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux 51: 00000918 0 FUNC LOCAL DEFAULT 12 call___do_global_ctors_aux 52: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 53: 00000970 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__libc_start_main@@GLIBC_2.0 54: 00000980 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.snprintf@@GLIBC_2.4 55: 00000990 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__printf_chk@@GLIBC_2.4 56: 00000940 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 57: 00000960 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__gmon_start__ 58: 00000950 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__cxa_finalize@@GLIBC_2.1.3 59: 000009c0 0 NOTYPE LOCAL DEFAULT 12 __glink_PLTresolve 60: 00010eb8 0 OBJECT LOCAL DEFAULT 18 __DTOR_END__ 61: 00010eac 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 62: 00011018 0 OBJECT LOCAL DEFAULT 24 __dso_handle 63: 00010ef8 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 64: 00010eac 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 65: 000009a0 0 NOTYPE LOCAL DEFAULT 12 __glink 66: 00010fdc 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 67: 00000880 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini 68: 00011010 0 NOTYPE WEAK DEFAULT 24 data_start 69: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS _edata 70: 00000a00 0 FUNC GLOBAL DEFAULT 13 _fini 71: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 72: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.1.3 73: 00011010 0 NOTYPE GLOBAL DEFAULT 24 __data_start 74: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 75: 00000730 136 FUNC GLOBAL DEFAULT 12 announcement 76: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 77: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.0 78: 000007c0 192 FUNC GLOBAL DEFAULT 12 __libc_csu_init 79: 0001901c 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ 80: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 81: 00011024 0 NOTYPE GLOBAL DEFAULT ABS _end 82: 000005a0 52 FUNC GLOBAL DEFAULT 12 _start 83: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 84: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 85: 00000570 48 FUNC GLOBAL DEFAULT 12 main 86: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 87: 00000890 36 FUNC GLOBAL HIDDEN 12 __stack_chk_fail_local 88: 00000518 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 (0x20627730) ../build-tree/includes-test-compiled ../build-tree/includes-test-compiled: ok (0x2059d730) # Compiler and linker options enabled. cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 0x5a0 There are 9 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00120 0x00120 R E 0x4 INTERP 0x000154 0x00000154 0x00000154 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x00000000 0x00000000 0x00a90 0x00a90 R E 0x10000 LOAD 0x000eac 0x00010eac 0x00010eac 0x00170 0x00178 RW 0x10000 DYNAMIC 0x000ef8 0x00010ef8 0x00010ef8 0x000e0 0x000e0 RW 0x4 NOTE 0x000164 0x00000164 0x00000164 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000a50 0x00000a50 0x00000a50 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 GNU_RELRO 0x000eac 0x00010eac 0x00010eac 0x00154 0x00154 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .ctors .dtors .jcr .got2 .dynamic .got .plt Dynamic section at offset 0xef8 contains 24 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x518 0x0000000d (FINI) 0xa00 0x6ffffef5 (GNU_HASH) 0x1a8 0x00000005 (STRTAB) 0x2bc 0x00000006 (SYMTAB) 0x1dc 0x0000000a (STRSZ) 200 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x10fe8 0x00000002 (PLTRELSZ) 72 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x4d0 0x70000000 (PPC_GOT) 0x10fdc 0x00000007 (RELA) 0x3e0 0x00000008 (RELASZ) 312 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW 0x6ffffffe (VERNEED) 0x3a0 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x384 0x6ffffff9 (RELACOUNT) 17 0x00000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x3e0 contains 20 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010ec0 00000016 R_PPC_RELATIVE 0001101c 00010ec8 00000016 R_PPC_RELATIVE 00011018 00010ecc 00000016 R_PPC_RELATIVE 00011020 00010ed0 00000016 R_PPC_RELATIVE 00010eb8 00010ed4 00000016 R_PPC_RELATIVE 00010eb4 00010ed8 00000016 R_PPC_RELATIVE 00010ebc 00010ee0 00000016 R_PPC_RELATIVE 00000a3c 00010ee4 00000016 R_PPC_RELATIVE 00000a40 00010ee8 00000016 R_PPC_RELATIVE 00000730 00010eec 00000016 R_PPC_RELATIVE 00010eac 00010ef0 00000016 R_PPC_RELATIVE 00010eac 00010ef4 00000016 R_PPC_RELATIVE 00010eb0 00011000 00000016 R_PPC_RELATIVE 0001901c 00011004 00000016 R_PPC_RELATIVE 00000570 00011008 00000016 R_PPC_RELATIVE 000007c0 0001100c 00000016 R_PPC_RELATIVE 00000880 00011018 00000016 R_PPC_RELATIVE 00011018 00010ec4 00000301 R_PPC_ADDR32 00000000 __cxa_finalize + 0 00010edc 00000801 R_PPC_ADDR32 00000000 _Jv_RegisterClasses + 0 00010fd8 00000414 R_PPC_GLOB_DAT 00000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x4d0 contains 6 entries: Offset Info Type Sym. Value Symbol's Name + Addend 00010fe8 00000215 R_PPC_JMP_SLOT 00000000 __stack_chk_fail + 0 00010fec 00000315 R_PPC_JMP_SLOT 00000000 __cxa_finalize + 0 00010ff0 00000415 R_PPC_JMP_SLOT 00000000 __gmon_start__ + 0 00010ff4 00000515 R_PPC_JMP_SLOT 00000000 __libc_start_main + 0 00010ff8 00000615 R_PPC_JMP_SLOT 00000000 snprintf + 0 00010ffc 00000715 R_PPC_JMP_SLOT 00000000 __printf_chk + 0 Symbol table '.dynsym' contains 14 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (2) 3: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (3) 4: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 5: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (4) 6: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.4 (2) 7: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.4 (2) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 9: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS _edata 10: 00011024 0 NOTYPE GLOBAL DEFAULT ABS _end 11: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 12: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 13: 0001901c 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ Symbol table '.symtab' contains 89 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000154 0 SECTION LOCAL DEFAULT 1 2: 00000164 0 SECTION LOCAL DEFAULT 2 3: 00000184 0 SECTION LOCAL DEFAULT 3 4: 000001a8 0 SECTION LOCAL DEFAULT 4 5: 000001dc 0 SECTION LOCAL DEFAULT 5 6: 000002bc 0 SECTION LOCAL DEFAULT 6 7: 00000384 0 SECTION LOCAL DEFAULT 7 8: 000003a0 0 SECTION LOCAL DEFAULT 8 9: 000003e0 0 SECTION LOCAL DEFAULT 9 10: 000004d0 0 SECTION LOCAL DEFAULT 10 11: 00000518 0 SECTION LOCAL DEFAULT 11 12: 00000570 0 SECTION LOCAL DEFAULT 12 13: 00000a00 0 SECTION LOCAL DEFAULT 13 14: 00000a38 0 SECTION LOCAL DEFAULT 14 15: 00000a50 0 SECTION LOCAL DEFAULT 15 16: 00000a64 0 SECTION LOCAL DEFAULT 16 17: 00010eac 0 SECTION LOCAL DEFAULT 17 18: 00010eb4 0 SECTION LOCAL DEFAULT 18 19: 00010ebc 0 SECTION LOCAL DEFAULT 19 20: 00010ec0 0 SECTION LOCAL DEFAULT 20 21: 00010ef8 0 SECTION LOCAL DEFAULT 21 22: 00010fd8 0 SECTION LOCAL DEFAULT 22 23: 00010fe8 0 SECTION LOCAL DEFAULT 23 24: 00011000 0 SECTION LOCAL DEFAULT 24 25: 0001101c 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: 00000000 0 SECTION LOCAL DEFAULT 35 36: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 37: 00010eac 0 OBJECT LOCAL DEFAULT 17 __CTOR_LIST__ 38: 00010eb4 0 OBJECT LOCAL DEFAULT 18 __DTOR_LIST__ 39: 00010ebc 0 OBJECT LOCAL DEFAULT 19 __JCR_LIST__ 40: 0001101c 1 OBJECT LOCAL DEFAULT 25 completed.6808 41: 00011020 4 OBJECT LOCAL DEFAULT 25 dtor_idx.6810 42: 000005d4 0 FUNC LOCAL DEFAULT 12 __do_global_dtors_aux 43: 000006a0 0 FUNC LOCAL DEFAULT 12 call___do_global_dtors_aux 44: 000006bc 0 FUNC LOCAL DEFAULT 12 frame_dummy 45: 00000714 0 FUNC LOCAL DEFAULT 12 call_frame_dummy 46: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 47: 00010eb0 0 OBJECT LOCAL DEFAULT 17 __CTOR_END__ 48: 00000a8c 0 OBJECT LOCAL DEFAULT 16 __FRAME_END__ 49: 00010ebc 0 OBJECT LOCAL DEFAULT 19 __JCR_END__ 50: 000008b4 0 FUNC LOCAL DEFAULT 12 __do_global_ctors_aux 51: 00000918 0 FUNC LOCAL DEFAULT 12 call___do_global_ctors_aux 52: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 53: 00000970 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__libc_start_main@@GLIBC_2.0 54: 00000980 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.snprintf@@GLIBC_2.4 55: 00000990 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__printf_chk@@GLIBC_2.4 56: 00000940 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 57: 00000960 0 NOTYPE LOCAL DEFAULT 12 00000000.plt_pic32.__gmon_start__ 58: 00000950 0 NOTYPE LOCAL DEFAULT 12 00008000.got2.plt_pic32.__cxa_finalize@@GLIBC_2.1.3 59: 000009c0 0 NOTYPE LOCAL DEFAULT 12 __glink_PLTresolve 60: 00010eb8 0 OBJECT LOCAL DEFAULT 18 __DTOR_END__ 61: 00010eac 0 NOTYPE LOCAL DEFAULT 17 __init_array_end 62: 00011018 0 OBJECT LOCAL DEFAULT 24 __dso_handle 63: 00010ef8 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC 64: 00010eac 0 NOTYPE LOCAL DEFAULT 17 __init_array_start 65: 000009a0 0 NOTYPE LOCAL DEFAULT 12 __glink 66: 00010fdc 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_ 67: 00000880 4 FUNC GLOBAL DEFAULT 12 __libc_csu_fini 68: 00011010 0 NOTYPE WEAK DEFAULT 24 data_start 69: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS _edata 70: 00000a00 0 FUNC GLOBAL DEFAULT 13 _fini 71: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 72: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.1.3 73: 00011010 0 NOTYPE GLOBAL DEFAULT 24 __data_start 74: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 75: 00000730 136 FUNC GLOBAL DEFAULT 12 announcement 76: 00000a38 4 OBJECT GLOBAL DEFAULT 14 _IO_stdin_used 77: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.0 78: 000007c0 192 FUNC GLOBAL DEFAULT 12 __libc_csu_init 79: 0001901c 0 NOTYPE GLOBAL DEFAULT 24 _SDA_BASE_ 80: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.4 81: 00011024 0 NOTYPE GLOBAL DEFAULT ABS _end 82: 000005a0 52 FUNC GLOBAL DEFAULT 12 _start 83: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.4 84: 0001101c 0 NOTYPE GLOBAL DEFAULT ABS __bss_start 85: 00000570 48 FUNC GLOBAL DEFAULT 12 main 86: 00000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 87: 00000890 36 FUNC GLOBAL HIDDEN 12 __stack_chk_fail_local 88: 00000518 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 (0x2078b730) ../build-tree/includes-test-linked ../build-tree/includes-test-linked: ok (0x20014730) # Check state of hardening features via check script sh ../hardening-check ../build-tree/includes-test-linked ../build-tree/includes-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes 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)' 00000940 t 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 U __stack_chk_fail@@GLIBC_2.4 # Test Fortify nm ../build-tree/includes-test-linked | egrep '__(sn)?printf_chk($|@@GLIBC)' 00000990 t 00008000.got2.plt_pic32.__printf_chk@@GLIBC_2.4 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 0x000eac 0x00010eac 0x00010eac 0x00154 0x00154 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 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 (0x2014b730) # Build .o with -fPIC already defined cc -fPIC -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 (0x20060730) # Make sure build fails due to -Werror=format-security ! cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 -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 -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 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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)' 00000940 t 00008000.got2.plt_pic32.__stack_chk_fail@@GLIBC_2.4 U __stack_chk_fail@@GLIBC_2.4 # Make sure build does not stack-protects a tiny ssp buffer cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -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 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 \ -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now \ -o ../build-tree/includes-disabled hello.c if sh ../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 Read-only relocations: yes Immediate binding: yes # Disable stack protector cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -fno-stack-protector -o ../build-tree/includes-disabled hello.c if sh ../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 Read-only relocations: yes Immediate binding: yes # Disable fortify cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -U_FORTIFY_SOURCE -o ../build-tree/includes-disabled hello.c if sh ../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, not found! Read-only relocations: yes Immediate binding: yes # Disable relro cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,norelro -o ../build-tree/includes-disabled hello.c if sh ../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 Read-only relocations: no, not found! Immediate binding: yes # Disable bindnow cc -g -O2 -fPIE -fstack-protector --param ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -O2 -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,-z,lazy -o ../build-tree/includes-disabled hello.c if sh ../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 Read-only relocations: yes Immediate binding: no, not found! # Disable everything cc \ -g -O2 -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,now \ -fno-stack-protector \ -U_FORTIFY_SOURCE \ -Wno-format-security \ -Wl,-z,norelro \ -Wl,-z,lazy \ -o ../build-tree/includes-disabled hello.c if sh ../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, not 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 0x10000360 There are 8 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x10000034 0x10000034 0x00100 0x00100 R E 0x4 INTERP 0x000134 0x10000134 0x10000134 0x0000d 0x0000d R 0x1 [Requesting program interpreter: /lib/ld.so.1] LOAD 0x000000 0x10000000 0x10000000 0x00760 0x00760 R E 0x10000 LOAD 0x000760 0x10010760 0x10010760 0x00118 0x00120 RW 0x10000 DYNAMIC 0x00077c 0x1001077c 0x1001077c 0x000d0 0x000d0 RW 0x4 NOTE 0x000144 0x10000144 0x10000144 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x000720 0x10000720 0x10000720 0x00014 0x00014 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x4 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame 03 .ctors .dtors .jcr .got2 .dynamic .got .plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 Dynamic section at offset 0x77c contains 21 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x100002d8 0x0000000d (FINI) 0x100006c0 0x6ffffef5 (GNU_HASH) 0x10000188 0x00000005 (STRTAB) 0x10000208 0x00000006 (SYMTAB) 0x100001a8 0x0000000a (STRSZ) 88 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x1001085c 0x00000002 (PLTRELSZ) 48 (bytes) 0x00000014 (PLTREL) RELA 0x00000017 (JMPREL) 0x100002a8 0x70000000 (PPC_GOT) 0x10010850 0x00000007 (RELA) 0x1000029c 0x00000008 (RELASZ) 60 (bytes) 0x00000009 (RELAENT) 12 (bytes) 0x6ffffffe (VERNEED) 0x1000026c 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x10000260 0x00000000 (NULL) 0x0 make[2]: Leaving directory `/build/buildd/hardening-wrapper-1.33/tests' make[1]: Leaving directory `/build/buildd/hardening-wrapper-1.33/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 powerpc: 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_md5sums -a dh_builddeb -a INFO: pkgstriptranslations version 101 pkgstriptranslations: processing control file: ./debian/hardening-wrapper/DEBIAN/control, package hardening-wrapper, directory ./debian/hardening-wrapper pkgstriptranslations: hardening-wrapper does not contain translations, skipping pkgstriptranslations: no translation files, not creating tarball pkgmaintainermangler: Maintainer field overridden to "Ubuntu Developers " pkgstripfiles: processing control file: debian/hardening-wrapper/DEBIAN/control, package hardening-wrapper, directory debian/hardening-wrapper pkgstripfiles: Truncating changelog to topmost ten records 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.33_powerpc.deb'. dpkg-genchanges -B -mUbuntu/powerpc Build Daemon >../hardening-wrapper_1.33_powerpc.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.33 dpkg-buildpackage: binary only upload (no source included) ****************************************************************************** Build finished at 20110727-1303 chroot-autobuild/build/buildd/hardening-wrapper_1.33_powerpc.deb: new debian package, version 2.0. size 10546 bytes: control archive= 1415 bytes. 602 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.33 Architecture: powerpc Maintainer: Ubuntu Developers Original-Maintainer: Package Hardening Installed-Size: 116 Depends: gcc | g++, perl Section: devel Priority: extra Multi-Arch: foreign Homepage: http://wiki.debian.org/Hardening Description: Compiler wrapper to enable security hardening flags Replaces gcc, g++, and ld with wrapper scripts that set security hardening compilation flags, as an alternative to changing gcc specs. Enabled when DEB_BUILD_HARDENING=1 is set. chroot-autobuild/build/buildd/hardening-wrapper_1.33_powerpc.deb: tar: Record size = 8 blocks drwxr-xr-x root/root 0 2011-07-27 13:03 ./ drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/ drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/bin/ -rwxr-xr-x root/root 5352 2011-07-27 13:03 ./usr/bin/hardened-cc -rwxr-xr-x root/root 5355 2011-07-27 13:03 ./usr/bin/hardened-c++ -rwxr-xr-x root/root 2506 2011-07-27 13:03 ./usr/bin/hardened-ld drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/ drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/lintian/ drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/lintian/overrides/ -rw-r--r-- root/root 108 2011-07-27 13:03 ./usr/share/lintian/overrides/hardening-wrapper drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/doc/ drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/doc/hardening-wrapper/ -rw-r--r-- root/root 64 2009-07-23 03:01 ./usr/share/doc/hardening-wrapper/AUTHORS -rw-r--r-- root/root 18 2008-01-09 00:00 ./usr/share/doc/hardening-wrapper/TODO -rw-r--r-- root/root 2949 2011-02-18 19:59 ./usr/share/doc/hardening-wrapper/README.Debian -rw-r--r-- root/root 1181 2011-02-18 19:26 ./usr/share/doc/hardening-wrapper/copyright -rw-r--r-- root/root 1437 2011-07-27 13:03 ./usr/share/doc/hardening-wrapper/changelog.gz drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/man/ drwxr-xr-x root/root 0 2011-07-27 13:03 ./usr/share/man/man1/ -rw-r--r-- root/root 734 2011-07-27 13:03 ./usr/share/man/man1/hardened-ld.1.gz -rw-r--r-- root/root 825 2011-07-27 13:03 ./usr/share/man/man1/hardening-wrapper.1.gz -rw-r--r-- root/root 825 2011-07-27 13:03 ./usr/share/man/man1/hardened-cc.1.gz -rw-r--r-- root/root 827 2011-07-27 13:03 ./usr/share/man/man1/hardened-c++.1.gz lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/g++-4.2 -> hardened-c++ lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/gcc-4.2 -> hardened-cc lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/g++-4.3 -> hardened-c++ lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/gcc-4.3 -> hardened-cc lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/g++-4.4 -> hardened-c++ lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/gcc-4.4 -> hardened-cc lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/g++-4.5 -> hardened-c++ lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/gcc-4.5 -> hardened-cc lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/g++-4.6 -> hardened-c++ lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/gcc-4.6 -> hardened-cc lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/ld.bfd -> hardened-ld lrwxrwxrwx root/root 0 2011-07-27 13:03 ./usr/bin/ld.gold -> hardened-ld hardening-wrapper_1.33_powerpc.changes: Format: 1.8 Date: Sun, 03 Jul 2011 11:28:00 -0700 Source: hardening-wrapper Binary: hardening-wrapper hardening-includes Architecture: powerpc Version: 1.33 Distribution: oneiric Urgency: low Maintainer: Ubuntu/powerpc Build Daemon Changed-By: Kees Cook Description: hardening-includes - Makefile for enabling compiler flags for security hardening hardening-wrapper - Compiler wrapper to enable security hardening flags Changes: hardening-wrapper (1.33) unstable; urgency=low . * debian/control: - bump to standards 3.9.2; no changes needed - hardening-wrapper: mark as Multi-Arch: foreign for build sanity. * debian/source/format: mark as 3.0 native. Checksums-Sha1: 97ec15a18ffe36b1cbd608524b28ed146f7f9466 10546 hardening-wrapper_1.33_powerpc.deb Checksums-Sha256: 8365744c8f96d05c23cdd3ff977fbc4f3c4e4d0288cbd3c27fb33f3bc45eb645 10546 hardening-wrapper_1.33_powerpc.deb Files: 2e857c9e86c692d37796a8c9e8cbbd6a 10546 devel extra hardening-wrapper_1.33_powerpc.deb ****************************************************************************** Built successfully Purging chroot-autobuild/build/buildd/hardening-wrapper-1.33 ------------------------------------------------------------------------------ /usr/bin/sudo dpkg --purge po-debconf libunistring0 intltool-debian groff-base libcroco3 libmagic1 gettext file libpipeline1 libxml2 bsdmainutils html2text gettext-base man-db debhelper (Reading database ... 15266 files and directories currently installed.) Removing debhelper ... Removing po-debconf ... Removing intltool-debian ... Removing gettext ... Removing file ... Removing html2text ... Purging configuration files for html2text ... Removing gettext-base ... Removing man-db ... Purging configuration files for man-db ... Removing catpages as well as /var/cache/man hierarchy. Removing libunistring0 ... Purging configuration files for libunistring0 ... Removing groff-base ... Purging configuration files for groff-base ... Removing libcroco3 ... Purging configuration files for libcroco3 ... Removing libmagic1 ... Purging configuration files for libmagic1 ... Removing libpipeline1 ... Purging configuration files for libpipeline1 ... Removing libxml2 ... Purging configuration files for libxml2 ... Removing bsdmainutils ... Purging configuration files for bsdmainutils ... Processing triggers for libc-bin ... ldconfig deferred processing now taking place ****************************************************************************** Finished at 20110727-1303 Build needed 00:00:18, 600k disk space Can't open average time db /var/debbuild/avg-build-times Can't open average space db /var/debbuild/avg-build-space RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['/usr/share/launchpad-buildd/slavebin/scan-for-processes', 'a8e0a4e66484fa908a9b90f594024999a7999d83'] Scanning for processes to kill in build /home/buildd/build-a8e0a4e66484fa908a9b90f594024999a7999d83/chroot-autobuild... RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'a8e0a4e66484fa908a9b90f594024999a7999d83'] Unmounting chroot for build a8e0a4e66484fa908a9b90f594024999a7999d83... RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'a8e0a4e66484fa908a9b90f594024999a7999d83'] Removing build a8e0a4e66484fa908a9b90f594024999a7999d83