DC-Build-Header: hardening-wrapper 2.3 / 2013-07-19 10:46:09 +0000 DC-Task: source:hardening-wrapper version:2.3 architecture:any chroot:unstable esttime:34 logfile:/tmp/hardening-wrapper_2.3_unstable_clang.log modes:binary-only:clang DC-Sbuild-call: su user -c 'sbuild -n --apt-update -d unstable -v --chroot-setup-commands=/tmp/switch-to-clang --append-to-version "clang1" --maintainer "Lucas Nussbaum " --uploader "Lucas Nussbaum " hardening-wrapper_2.3' sbuild (Debian sbuild) 0.63.2 (18 Aug 2012) on ip-10-235-1-254.ec2.internal ╔══════════════════════════════════════════════════════════════════════════════╗ ║ hardening-wrapper 2.3clang1 (amd64) 19 Jul 2013 10:46 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: hardening-wrapper Version: 2.3clang1 Source Version: 2.3 Distribution: unstable Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 I: NOTICE: Log filtering will replace 'build/hardening-wrapper-65IHhL/hardening-wrapper-2.3clang1' with '«PKGBUILDDIR»' I: NOTICE: Log filtering will replace 'build/hardening-wrapper-65IHhL' with '«BUILDDIR»' I: NOTICE: Log filtering will replace 'var/lib/schroot/mount/unstable-amd64-sbuild-1c7c07a0-2244-40b8-a95e-fab56fdff992' with '«CHROOT»' ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Get:1 http://localhost:9999 unstable InRelease [204 kB] Get:2 http://localhost:9999 unstable/main Sources/DiffIndex [7876 B] Get:3 http://localhost:9999 unstable/main amd64 Packages/DiffIndex [7876 B] Get:4 http://localhost:9999 unstable/main Translation-en/DiffIndex [7876 B] Get:5 http://localhost:9999 unstable/main 2013-07-13-2032.15.pdiff [23.1 kB] Get:6 http://localhost:9999 unstable/main amd64 2013-07-13-2032.15.pdiff [16.9 kB] Get:7 http://localhost:9999 unstable/main 2013-07-13-2032.15.pdiff [23.1 kB] Get:8 http://localhost:9999 unstable/main 2013-07-13-2032.15.pdiff [1809 B] Get:9 http://localhost:9999 unstable/main amd64 2013-07-13-2032.15.pdiff [16.9 kB] Get:10 http://localhost:9999 unstable/main 2013-07-14-0231.07.pdiff [12.9 kB] Get:11 http://localhost:9999 unstable/main 2013-07-13-2032.15.pdiff [1809 B] Get:12 http://localhost:9999 unstable/main amd64 2013-07-14-0231.07.pdiff [14.9 kB] Get:13 http://localhost:9999 unstable/main 2013-07-14-0231.07.pdiff [12.9 kB] Get:14 http://localhost:9999 unstable/main 2013-07-14-0231.07.pdiff [1384 B] Get:15 http://localhost:9999 unstable/main amd64 2013-07-14-0231.07.pdiff [14.9 kB] Get:16 http://localhost:9999 unstable/main 2013-07-14-0832.16.pdiff [4670 B] Get:17 http://localhost:9999 unstable/main 2013-07-14-0231.07.pdiff [1384 B] Get:18 http://localhost:9999 unstable/main amd64 2013-07-14-0832.16.pdiff [1624 B] Get:19 http://localhost:9999 unstable/main 2013-07-14-0832.16.pdiff [4670 B] Get:20 http://localhost:9999 unstable/main 2013-07-14-0832.16.pdiff [337 B] Get:21 http://localhost:9999 unstable/main amd64 2013-07-14-0832.16.pdiff [1624 B] Get:22 http://localhost:9999 unstable/main 2013-07-14-1431.18.pdiff [11.4 kB] Get:23 http://localhost:9999 unstable/main 2013-07-14-0832.16.pdiff [337 B] Get:24 http://localhost:9999 unstable/main amd64 2013-07-14-1431.18.pdiff [8223 B] Get:25 http://localhost:9999 unstable/main 2013-07-14-1431.18.pdiff [11.4 kB] Get:26 http://localhost:9999 unstable/main 2013-07-14-1431.18.pdiff [887 B] Get:27 http://localhost:9999 unstable/main amd64 2013-07-14-1431.18.pdiff [8223 B] Get:28 http://localhost:9999 unstable/main 2013-07-14-2031.21.pdiff [9038 B] Get:29 http://localhost:9999 unstable/main 2013-07-14-1431.18.pdiff [887 B] Get:30 http://localhost:9999 unstable/main amd64 2013-07-14-2031.21.pdiff [9955 B] Get:31 http://localhost:9999 unstable/main 2013-07-14-2031.21.pdiff [9038 B] Get:32 http://localhost:9999 unstable/main 2013-07-14-2031.21.pdiff [2736 B] Get:33 http://localhost:9999 unstable/main amd64 2013-07-14-2031.21.pdiff [9955 B] Get:34 http://localhost:9999 unstable/main 2013-07-15-0229.01.pdiff [9715 B] Get:35 http://localhost:9999 unstable/main 2013-07-14-2031.21.pdiff [2736 B] Get:36 http://localhost:9999 unstable/main amd64 2013-07-15-0229.01.pdiff [12.7 kB] Get:37 http://localhost:9999 unstable/main 2013-07-15-0229.01.pdiff [9715 B] Get:38 http://localhost:9999 unstable/main 2013-07-15-0229.01.pdiff [2239 B] Get:39 http://localhost:9999 unstable/main amd64 2013-07-15-0229.01.pdiff [12.7 kB] Get:40 http://localhost:9999 unstable/main 2013-07-15-0830.19.pdiff [3273 B] Get:41 http://localhost:9999 unstable/main 2013-07-15-0229.01.pdiff [2239 B] Get:42 http://localhost:9999 unstable/main amd64 2013-07-15-0830.19.pdiff [3964 B] Get:43 http://localhost:9999 unstable/main 2013-07-15-0830.19.pdiff [3273 B] Get:44 http://localhost:9999 unstable/main 2013-07-15-0830.19.pdiff [1357 B] Get:45 http://localhost:9999 unstable/main amd64 2013-07-15-0830.19.pdiff [3964 B] Get:46 http://localhost:9999 unstable/main 2013-07-15-1432.36.pdiff [5326 B] Get:47 http://localhost:9999 unstable/main 2013-07-15-0830.19.pdiff [1357 B] Get:48 http://localhost:9999 unstable/main amd64 2013-07-15-1432.36.pdiff [9809 B] Get:49 http://localhost:9999 unstable/main 2013-07-15-1432.36.pdiff [5326 B] Get:50 http://localhost:9999 unstable/main 2013-07-15-1432.36.pdiff [322 B] Get:51 http://localhost:9999 unstable/main amd64 2013-07-15-1432.36.pdiff [9809 B] Get:52 http://localhost:9999 unstable/main 2013-07-15-2031.50.pdiff [12.2 kB] Get:53 http://localhost:9999 unstable/main 2013-07-15-1432.36.pdiff [322 B] Get:54 http://localhost:9999 unstable/main amd64 2013-07-15-2031.50.pdiff [24.4 kB] Get:55 http://localhost:9999 unstable/main 2013-07-15-2031.50.pdiff [12.2 kB] Get:56 http://localhost:9999 unstable/main 2013-07-15-2031.50.pdiff [537 B] Get:57 http://localhost:9999 unstable/main amd64 2013-07-15-2031.50.pdiff [24.4 kB] Get:58 http://localhost:9999 unstable/main 2013-07-16-0233.12.pdiff [14.8 kB] Get:59 http://localhost:9999 unstable/main 2013-07-15-2031.50.pdiff [537 B] Get:60 http://localhost:9999 unstable/main amd64 2013-07-16-0233.12.pdiff [49.5 kB] Get:61 http://localhost:9999 unstable/main 2013-07-16-0233.12.pdiff [14.8 kB] Get:62 http://localhost:9999 unstable/main 2013-07-16-0233.12.pdiff [3247 B] Get:63 http://localhost:9999 unstable/main amd64 2013-07-16-0233.12.pdiff [49.5 kB] Get:64 http://localhost:9999 unstable/main 2013-07-16-0834.41.pdiff [7447 B] Get:65 http://localhost:9999 unstable/main 2013-07-16-0233.12.pdiff [3247 B] Get:66 http://localhost:9999 unstable/main amd64 2013-07-16-0834.41.pdiff [4493 B] Get:67 http://localhost:9999 unstable/main 2013-07-16-0834.41.pdiff [7447 B] Get:68 http://localhost:9999 unstable/main 2013-07-16-0834.41.pdiff [5852 B] Get:69 http://localhost:9999 unstable/main amd64 2013-07-16-0834.41.pdiff [4493 B] Get:70 http://localhost:9999 unstable/main 2013-07-16-1433.54.pdiff [21.2 kB] Get:71 http://localhost:9999 unstable/main 2013-07-16-0834.41.pdiff [5852 B] Get:72 http://localhost:9999 unstable/main amd64 2013-07-16-1433.54.pdiff [19.3 kB] Get:73 http://localhost:9999 unstable/main 2013-07-16-1433.54.pdiff [21.2 kB] Get:74 http://localhost:9999 unstable/main 2013-07-16-1433.54.pdiff [1941 B] Get:75 http://localhost:9999 unstable/main amd64 2013-07-16-1433.54.pdiff [19.3 kB] Get:76 http://localhost:9999 unstable/main 2013-07-16-2046.09.pdiff [19.4 kB] Get:77 http://localhost:9999 unstable/main 2013-07-16-1433.54.pdiff [1941 B] Get:78 http://localhost:9999 unstable/main amd64 2013-07-16-2046.09.pdiff [18.4 kB] Get:79 http://localhost:9999 unstable/main 2013-07-16-2046.09.pdiff [19.4 kB] Get:80 http://localhost:9999 unstable/main 2013-07-16-2046.09.pdiff [465 B] Get:81 http://localhost:9999 unstable/main amd64 2013-07-16-2046.09.pdiff [18.4 kB] Get:82 http://localhost:9999 unstable/main 2013-07-17-0233.52.pdiff [6503 B] Get:83 http://localhost:9999 unstable/main 2013-07-16-2046.09.pdiff [465 B] Get:84 http://localhost:9999 unstable/main amd64 2013-07-17-0233.52.pdiff [10.9 kB] Get:85 http://localhost:9999 unstable/main 2013-07-17-0233.52.pdiff [6503 B] Get:86 http://localhost:9999 unstable/main 2013-07-17-0233.52.pdiff [2433 B] Get:87 http://localhost:9999 unstable/main amd64 2013-07-17-0233.52.pdiff [10.9 kB] Get:88 http://localhost:9999 unstable/main 2013-07-17-0833.19.pdiff [6945 B] Get:89 http://localhost:9999 unstable/main 2013-07-17-0233.52.pdiff [2433 B] Get:90 http://localhost:9999 unstable/main amd64 2013-07-17-0833.19.pdiff [7401 B] Get:91 http://localhost:9999 unstable/main 2013-07-17-0833.19.pdiff [6945 B] Get:92 http://localhost:9999 unstable/main 2013-07-17-0833.19.pdiff [1349 B] Get:93 http://localhost:9999 unstable/main amd64 2013-07-17-0833.19.pdiff [7401 B] Get:94 http://localhost:9999 unstable/main 2013-07-17-1433.06.pdiff [6373 B] Get:95 http://localhost:9999 unstable/main 2013-07-17-0833.19.pdiff [1349 B] Get:96 http://localhost:9999 unstable/main amd64 2013-07-17-1433.06.pdiff [16.6 kB] Get:97 http://localhost:9999 unstable/main 2013-07-17-1433.06.pdiff [6373 B] Get:98 http://localhost:9999 unstable/main 2013-07-17-1433.06.pdiff [629 B] Get:99 http://localhost:9999 unstable/main amd64 2013-07-17-1433.06.pdiff [16.6 kB] Get:100 http://localhost:9999 unstable/main 2013-07-17-2032.34.pdiff [12.2 kB] Get:101 http://localhost:9999 unstable/main 2013-07-17-1433.06.pdiff [629 B] Get:102 http://localhost:9999 unstable/main amd64 2013-07-17-2032.34.pdiff [16.8 kB] Get:103 http://localhost:9999 unstable/main 2013-07-17-2032.34.pdiff [12.2 kB] Get:104 http://localhost:9999 unstable/main 2013-07-17-2032.34.pdiff [1150 B] Get:105 http://localhost:9999 unstable/main amd64 2013-07-17-2032.34.pdiff [16.8 kB] Get:106 http://localhost:9999 unstable/main 2013-07-18-0230.02.pdiff [5227 B] Get:107 http://localhost:9999 unstable/main 2013-07-17-2032.34.pdiff [1150 B] Get:108 http://localhost:9999 unstable/main amd64 2013-07-18-0230.02.pdiff [4895 B] Get:109 http://localhost:9999 unstable/main 2013-07-18-0230.02.pdiff [5227 B] Get:110 http://localhost:9999 unstable/main 2013-07-18-0230.02.pdiff [1970 B] Get:111 http://localhost:9999 unstable/main amd64 2013-07-18-0230.02.pdiff [4895 B] Get:112 http://localhost:9999 unstable/main 2013-07-18-0832.03.pdiff [8561 B] Get:113 http://localhost:9999 unstable/main 2013-07-18-0230.02.pdiff [1970 B] Get:114 http://localhost:9999 unstable/main amd64 2013-07-18-0832.03.pdiff [19.2 kB] Get:115 http://localhost:9999 unstable/main 2013-07-18-0832.03.pdiff [8561 B] Get:116 http://localhost:9999 unstable/main 2013-07-18-0832.03.pdiff [443 B] Get:117 http://localhost:9999 unstable/main amd64 2013-07-18-0832.03.pdiff [19.2 kB] Get:118 http://localhost:9999 unstable/main 2013-07-18-1430.41.pdiff [9942 B] Get:119 http://localhost:9999 unstable/main 2013-07-18-0832.03.pdiff [443 B] Get:120 http://localhost:9999 unstable/main amd64 2013-07-18-1430.41.pdiff [13.9 kB] Get:121 http://localhost:9999 unstable/main 2013-07-18-1430.41.pdiff [9942 B] Get:122 http://localhost:9999 unstable/main 2013-07-18-1430.41.pdiff [206 B] Get:123 http://localhost:9999 unstable/main amd64 2013-07-18-1430.41.pdiff [13.9 kB] Get:124 http://localhost:9999 unstable/main 2013-07-18-2031.52.pdiff [9059 B] Get:125 http://localhost:9999 unstable/main 2013-07-18-1430.41.pdiff [206 B] Get:126 http://localhost:9999 unstable/main amd64 2013-07-18-2031.52.pdiff [9288 B] Get:127 http://localhost:9999 unstable/main 2013-07-18-2031.52.pdiff [9059 B] Get:128 http://localhost:9999 unstable/main 2013-07-18-2031.52.pdiff [2219 B] Get:129 http://localhost:9999 unstable/main amd64 2013-07-18-2031.52.pdiff [9288 B] Get:130 http://localhost:9999 unstable/main 2013-07-19-0235.27.pdiff [4798 B] Get:131 http://localhost:9999 unstable/main 2013-07-18-2031.52.pdiff [2219 B] Get:132 http://localhost:9999 unstable/main amd64 2013-07-19-0235.27.pdiff [4683 B] Get:133 http://localhost:9999 unstable/main 2013-07-19-0235.27.pdiff [4798 B] Get:134 http://localhost:9999 unstable/main 2013-07-19-0235.27.pdiff [155 B] Get:135 http://localhost:9999 unstable/main amd64 2013-07-19-0235.27.pdiff [4683 B] Get:136 http://localhost:9999 unstable/main 2013-07-19-0832.53.pdiff [5947 B] Get:137 http://localhost:9999 unstable/main 2013-07-19-0235.27.pdiff [155 B] Get:138 http://localhost:9999 unstable/main amd64 2013-07-19-0832.53.pdiff [10.7 kB] Get:139 http://localhost:9999 unstable/main 2013-07-19-0832.53.pdiff [5947 B] Get:140 http://localhost:9999 unstable/main 2013-07-19-0832.53.pdiff [2637 B] Get:141 http://localhost:9999 unstable/main amd64 2013-07-19-0832.53.pdiff [10.7 kB] Get:142 http://localhost:9999 unstable/main 2013-07-19-0832.53.pdiff [2637 B] Fetched 803 kB in 1min 23s (9573 B/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages will be upgraded: apt cpp-4.7 cpp-4.8 g++-4.8 gcc-4.7 gcc-4.7-base gcc-4.8 gcc-4.8-base initscripts libapt-pkg4.12 libasan0 libatomic1 libgcc-4.7-dev libgcc-4.8-dev libgcc1 libgomp1 libitm1 libquadmath0 libstdc++-4.8-dev libstdc++6 libtsan0 linux-libc-dev sysv-rc sysvinit sysvinit-utils 25 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 44.5 MB of archives. After this operation, 47.1 kB of additional disk space will be used. Get:1 http://localhost:9999/debian/ unstable/main sysvinit amd64 2.88dsf-43 [134 kB] Get:2 http://localhost:9999/debian/ unstable/main libitm1 amd64 4.8.1-7 [37.4 kB] Get:3 http://localhost:9999/debian/ unstable/main libgomp1 amd64 4.8.1-7 [26.8 kB] Get:4 http://localhost:9999/debian/ unstable/main libasan0 amd64 4.8.1-7 [75.6 kB] Get:5 http://localhost:9999/debian/ unstable/main gcc-4.8-base amd64 4.8.1-7 [150 kB] Get:6 http://localhost:9999/debian/ unstable/main libgcc1 amd64 1:4.8.1-7 [43.3 kB] Get:7 http://localhost:9999/debian/ unstable/main libatomic1 amd64 4.8.1-7 [10.0 kB] Get:8 http://localhost:9999/debian/ unstable/main libtsan0 amd64 4.8.1-7 [117 kB] Get:9 http://localhost:9999/debian/ unstable/main libquadmath0 amd64 4.8.1-7 [138 kB] Get:10 http://localhost:9999/debian/ unstable/main cpp-4.8 amd64 4.8.1-7 [5811 kB] Get:11 http://localhost:9999/debian/ unstable/main libstdc++-4.8-dev amd64 4.8.1-7 [1744 kB] Get:12 http://localhost:9999/debian/ unstable/main g++-4.8 amd64 4.8.1-7 [9490 kB] Get:13 http://localhost:9999/debian/ unstable/main gcc-4.8 amd64 4.8.1-7 [6349 kB] Get:14 http://localhost:9999/debian/ unstable/main libgcc-4.8-dev amd64 4.8.1-7 [2791 kB] Get:15 http://localhost:9999/debian/ unstable/main libstdc++6 amd64 4.8.1-7 [325 kB] Get:16 http://localhost:9999/debian/ unstable/main libapt-pkg4.12 amd64 0.9.9.2 [928 kB] Get:17 http://localhost:9999/debian/ unstable/main apt amd64 0.9.9.2 [1327 kB] Get:18 http://localhost:9999/debian/ unstable/main sysv-rc all 2.88dsf-43 [80.5 kB] Get:19 http://localhost:9999/debian/ unstable/main sysvinit-utils amd64 2.88dsf-43 [103 kB] Get:20 http://localhost:9999/debian/ unstable/main initscripts amd64 2.88dsf-43 [87.2 kB] Get:21 http://localhost:9999/debian/ unstable/main gcc-4.7 amd64 4.7.3-6 [5819 kB] Get:22 http://localhost:9999/debian/ unstable/main cpp-4.7 amd64 4.7.3-6 [5385 kB] Get:23 http://localhost:9999/debian/ unstable/main libgcc-4.7-dev amd64 4.7.3-6 [2465 kB] Get:24 http://localhost:9999/debian/ unstable/main gcc-4.7-base amd64 4.7.3-6 [149 kB] Get:25 http://localhost:9999/debian/ unstable/main linux-libc-dev amd64 3.10.1-1 [869 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 44.5 MB in 1s (24.7 MB/s) (Reading database ... 13844 files and directories currently installed.) Preparing to replace sysvinit 2.88dsf-41 (using .../sysvinit_2.88dsf-43_amd64.deb) ... Unpacking replacement sysvinit ... Setting up sysvinit (2.88dsf-43) ... Not restarting sysvinit (Reading database ... 13844 files and directories currently installed.) Preparing to replace libitm1:amd64 4.8.1-6 (using .../libitm1_4.8.1-7_amd64.deb) ... Unpacking replacement libitm1:amd64 ... Preparing to replace libgomp1:amd64 4.8.1-6 (using .../libgomp1_4.8.1-7_amd64.deb) ... Unpacking replacement libgomp1:amd64 ... Preparing to replace libasan0:amd64 4.8.1-6 (using .../libasan0_4.8.1-7_amd64.deb) ... Unpacking replacement libasan0:amd64 ... Preparing to replace gcc-4.8-base:amd64 4.8.1-6 (using .../gcc-4.8-base_4.8.1-7_amd64.deb) ... Unpacking replacement gcc-4.8-base:amd64 ... Setting up gcc-4.8-base:amd64 (4.8.1-7) ... (Reading database ... 13844 files and directories currently installed.) Preparing to replace libgcc1:amd64 1:4.8.1-6 (using .../libgcc1_1%3a4.8.1-7_amd64.deb) ... Unpacking replacement libgcc1:amd64 ... Setting up libgcc1:amd64 (1:4.8.1-7) ... Processing triggers for libc-bin ... (Reading database ... 13844 files and directories currently installed.) Preparing to replace libatomic1:amd64 4.8.1-6 (using .../libatomic1_4.8.1-7_amd64.deb) ... Unpacking replacement libatomic1:amd64 ... Preparing to replace libtsan0:amd64 4.8.1-6 (using .../libtsan0_4.8.1-7_amd64.deb) ... Unpacking replacement libtsan0:amd64 ... Preparing to replace libquadmath0:amd64 4.8.1-6 (using .../libquadmath0_4.8.1-7_amd64.deb) ... Unpacking replacement libquadmath0:amd64 ... Preparing to replace cpp-4.8 4.8.1-6 (using .../cpp-4.8_4.8.1-7_amd64.deb) ... Unpacking replacement cpp-4.8 ... Preparing to replace libstdc++-4.8-dev:amd64 4.8.1-6 (using .../libstdc++-4.8-dev_4.8.1-7_amd64.deb) ... Unpacking replacement libstdc++-4.8-dev:amd64 ... Preparing to replace g++-4.8 4.8.1-6 (using .../g++-4.8_4.8.1-7_amd64.deb) ... Unpacking replacement g++-4.8 ... Preparing to replace gcc-4.8 4.8.1-6 (using .../gcc-4.8_4.8.1-7_amd64.deb) ... Unpacking replacement gcc-4.8 ... Preparing to replace libgcc-4.8-dev:amd64 4.8.1-6 (using .../libgcc-4.8-dev_4.8.1-7_amd64.deb) ... Unpacking replacement libgcc-4.8-dev:amd64 ... Preparing to replace libstdc++6:amd64 4.8.1-6 (using .../libstdc++6_4.8.1-7_amd64.deb) ... Unpacking replacement libstdc++6:amd64 ... Setting up libstdc++6:amd64 (4.8.1-7) ... Processing triggers for libc-bin ... (Reading database ... 13844 files and directories currently installed.) Preparing to replace libapt-pkg4.12:amd64 0.9.9.1 (using .../libapt-pkg4.12_0.9.9.2_amd64.deb) ... Unpacking replacement libapt-pkg4.12:amd64 ... Setting up libapt-pkg4.12:amd64 (0.9.9.2) ... Processing triggers for libc-bin ... (Reading database ... 13844 files and directories currently installed.) Preparing to replace apt 0.9.9.1 (using .../archives/apt_0.9.9.2_amd64.deb) ... Unpacking replacement apt ... Setting up apt (0.9.9.2) ... gpg: key B98321F9: "Squeeze Stable Release Key " not changed gpg: key 473041FA: "Debian Archive Automatic Signing Key (6.0/squeeze) " not changed gpg: key 65FFB764: "Wheezy Stable Release Key " not changed gpg: key 46925553: "Debian Archive Automatic Signing Key (7.0/wheezy) " not changed gpg: Total number processed: 4 gpg: unchanged: 4 (Reading database ... 13844 files and directories currently installed.) Preparing to replace sysv-rc 2.88dsf-41 (using .../sysv-rc_2.88dsf-43_all.deb) ... Unpacking replacement sysv-rc ... Preparing to replace sysvinit-utils 2.88dsf-41 (using .../sysvinit-utils_2.88dsf-43_amd64.deb) ... Unpacking replacement sysvinit-utils ... Setting up sysvinit-utils (2.88dsf-43) ... Setting up sysv-rc (2.88dsf-43) ... (Reading database ... 13844 files and directories currently installed.) Preparing to replace initscripts 2.88dsf-41 (using .../initscripts_2.88dsf-43_amd64.deb) ... Removing unmodified and obsolete conffile /etc/init.d/mtab.sh ... Unpacking replacement initscripts ... Setting up initscripts (2.88dsf-43) ... Installing new version of config file /etc/init.d/bootmisc.sh ... Installing new version of config file /etc/init.d/checkfs.sh ... Installing new version of config file /etc/init.d/checkroot.sh ... Installing new version of config file /etc/init.d/checkroot-bootclean.sh ... Installing new version of config file /etc/init.d/mountdevsubfs.sh ... Installing new version of config file /etc/init.d/mountkernfs.sh ... Installing new version of config file /etc/init.d/rmnologin ... Installing new version of config file /etc/network/if-up.d/mountnfs ... (Reading database ... 13843 files and directories currently installed.) Preparing to replace gcc-4.7 4.7.3-5 (using .../gcc-4.7_4.7.3-6_amd64.deb) ... Unpacking replacement gcc-4.7 ... Preparing to replace cpp-4.7 4.7.3-5 (using .../cpp-4.7_4.7.3-6_amd64.deb) ... Unpacking replacement cpp-4.7 ... Preparing to replace libgcc-4.7-dev:amd64 4.7.3-5 (using .../libgcc-4.7-dev_4.7.3-6_amd64.deb) ... Unpacking replacement libgcc-4.7-dev:amd64 ... Preparing to replace gcc-4.7-base:amd64 4.7.3-5 (using .../gcc-4.7-base_4.7.3-6_amd64.deb) ... Unpacking replacement gcc-4.7-base:amd64 ... Preparing to replace linux-libc-dev:amd64 3.9.8-1 (using .../linux-libc-dev_3.10.1-1_amd64.deb) ... Unpacking replacement linux-libc-dev:amd64 ... Setting up libitm1:amd64 (4.8.1-7) ... Setting up libgomp1:amd64 (4.8.1-7) ... Setting up libasan0:amd64 (4.8.1-7) ... Setting up libatomic1:amd64 (4.8.1-7) ... Setting up libtsan0:amd64 (4.8.1-7) ... Setting up libquadmath0:amd64 (4.8.1-7) ... Setting up cpp-4.8 (4.8.1-7) ... Setting up libgcc-4.8-dev:amd64 (4.8.1-7) ... Setting up libstdc++-4.8-dev:amd64 (4.8.1-7) ... Setting up gcc-4.8 (4.8.1-7) ... Setting up g++-4.8 (4.8.1-7) ... Setting up gcc-4.7-base:amd64 (4.7.3-6) ... Setting up cpp-4.7 (4.7.3-6) ... Setting up libgcc-4.7-dev:amd64 (4.7.3-6) ... Setting up gcc-4.7 (4.7.3-6) ... Setting up linux-libc-dev:amd64 (3.10.1-1) ... Processing triggers for libc-bin ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... NOTICE: 'hardening-wrapper' packaging is maintained in the 'Bzr' version control system at: http://anonscm.debian.org/bzr/hardening/master Please use: bzr branch http://anonscm.debian.org/bzr/hardening/master to retrieve the latest (possibly unreleased) updates to the package. Need to get 22.4 kB of source archives. Get:1 http://localhost:9999/debian/ unstable/main hardening-wrapper 2.3 (dsc) [1860 B] Get:2 http://localhost:9999/debian/ unstable/main hardening-wrapper 2.3 (tar) [20.5 kB] Fetched 22.4 kB in 0s (133 kB/s) Download complete and in download only mode Check arch ────────── ┌──────────────────────────────────────────────────────────────────────────────┐ │ Chroot Setup Commands │ └──────────────────────────────────────────────────────────────────────────────┘ /tmp/switch-to-clang ──────────────────── + echo 'Entering customization script...' Entering customization script... + echo 'Install of clang' Install of clang + apt-get update Hit http://localhost:9999 unstable InRelease Hit http://localhost:9999 unstable/main Sources/DiffIndex Hit http://localhost:9999 unstable/main amd64 Packages/DiffIndex Hit http://localhost:9999 unstable/main Translation-en/DiffIndex Reading package lists... + apt-get install --yes --no-install-recommends --force-yes clang-3.3 Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: libclang-common-3.3-dev libclang1-3.3 libffi6 libllvm3.3 libobjc-4.7-dev libobjc4 libstdc++6-4.7-dev Suggested packages: libstdc++6-4.7-doc Recommended packages: llvm-3.3-dev python The following NEW packages will be installed: clang-3.3 libclang-common-3.3-dev libclang1-3.3 libffi6 libllvm3.3 libobjc-4.7-dev libobjc4 libstdc++6-4.7-dev 0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded. Need to get 27.2 MB of archives. After this operation, 80.8 MB of additional disk space will be used. Get:1 http://localhost:9999/debian/ unstable/main libffi6 amd64 3.0.13-4 [21.6 kB] Get:2 http://localhost:9999/debian/ unstable/main libllvm3.3 amd64 1:3.3-3 [8575 kB] Get:3 http://localhost:9999/debian/ unstable/main libobjc4 amd64 4.8.1-7 [160 kB] Get:4 http://localhost:9999/debian/ unstable/main libstdc++6-4.7-dev amd64 4.7.3-6 [1694 kB] Get:5 http://localhost:9999/debian/ unstable/main libobjc-4.7-dev amd64 4.7.3-6 [719 kB] Get:6 http://localhost:9999/debian/ unstable/main libclang-common-3.3-dev amd64 1:3.3-3 [574 kB] Get:7 http://localhost:9999/debian/ unstable/main libclang1-3.3 amd64 1:3.3-3 [4579 kB] Get:8 http://localhost:9999/debian/ unstable/main clang-3.3 amd64 1:3.3-3 [10.9 MB] debconf: delaying package configuration, since apt-utils is not installed Fetched 27.2 MB in 1s (25.8 MB/s) Selecting previously unselected package libffi6:amd64. (Reading database ... 13846 files and directories currently installed.) Unpacking libffi6:amd64 (from .../libffi6_3.0.13-4_amd64.deb) ... Selecting previously unselected package libllvm3.3:amd64. Unpacking libllvm3.3:amd64 (from .../libllvm3.3_1%3a3.3-3_amd64.deb) ... Selecting previously unselected package libobjc4:amd64. Unpacking libobjc4:amd64 (from .../libobjc4_4.8.1-7_amd64.deb) ... Selecting previously unselected package libstdc++6-4.7-dev:amd64. Unpacking libstdc++6-4.7-dev:amd64 (from .../libstdc++6-4.7-dev_4.7.3-6_amd64.deb) ... Selecting previously unselected package libobjc-4.7-dev:amd64. Unpacking libobjc-4.7-dev:amd64 (from .../libobjc-4.7-dev_4.7.3-6_amd64.deb) ... Selecting previously unselected package libclang-common-3.3-dev. Unpacking libclang-common-3.3-dev (from .../libclang-common-3.3-dev_1%3a3.3-3_amd64.deb) ... Selecting previously unselected package libclang1-3.3. Unpacking libclang1-3.3 (from .../libclang1-3.3_1%3a3.3-3_amd64.deb) ... Selecting previously unselected package clang-3.3. Unpacking clang-3.3 (from .../clang-3.3_1%3a3.3-3_amd64.deb) ... Setting up libffi6:amd64 (3.0.13-4) ... Setting up libllvm3.3:amd64 (1:3.3-3) ... Setting up libobjc4:amd64 (4.8.1-7) ... Setting up libstdc++6-4.7-dev:amd64 (4.7.3-6) ... Setting up libobjc-4.7-dev:amd64 (4.7.3-6) ... Setting up libclang-common-3.3-dev (1:3.3-3) ... Setting up libclang1-3.3 (1:3.3-3) ... Setting up clang-3.3 (1:3.3-3) ... Processing triggers for libc-bin ... + echo 'Replace gcc, g++ & cpp by clang' Replace gcc, g++ & cpp by clang + VERSIONS='4.6 4.7 4.8' + cd /usr/bin + for VERSION in '$VERSIONS' + rm -f g++-4.6 gcc-4.6 cpp-4.6 + ln -s clang++ g++-4.6 + ln -s clang gcc-4.6 + ln -s clang cpp-4.6 + for VERSION in '$VERSIONS' + rm -f g++-4.7 gcc-4.7 cpp-4.7 + ln -s clang++ g++-4.7 + ln -s clang gcc-4.7 + ln -s clang cpp-4.7 + for VERSION in '$VERSIONS' + rm -f g++-4.8 gcc-4.8 cpp-4.8 + ln -s clang++ g++-4.8 + ln -s clang gcc-4.8 + ln -s clang cpp-4.8 + cd - /«BUILDDIR» + echo 'Block the installation of new gcc version' Block the installation of new gcc version + dpkg --set-selections + echo 'gcc-4.6 hold' + dpkg --set-selections + echo 'cpp-4.6 hold' + dpkg --set-selections + echo 'g++-4.6 hold' + dpkg --set-selections + echo 'gcc-4.7 hold' + dpkg --set-selections + echo 'cpp-4.7 hold' + dpkg --set-selections + echo 'g++-4.7 hold' + dpkg --set-selections + echo 'gcc-4.8 hold' + dpkg --set-selections + echo 'cpp-4.8 hold' + dpkg --set-selections + echo 'g++-4.8 hold' + echo 'Check if gcc, g++ & cpp are actually clang' Check if gcc, g++ & cpp are actually clang + grep clang + gcc --version + grep clang + cpp --version + grep clang + g++ --version I: Finished running '/tmp/switch-to-clang'. Finished processing commands. ──────────────────────────────────────────────────────────────────────────────── Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/«BUILDDIR»/resolver-5bbF5U/apt_archive/sbuild-build-depends-core-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install core build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy debconf: delaying package configuration, since apt-utils is not installed 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/710 B of archives. After this operation, 0 B of additional disk space will be used. Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 14701 files and directories currently installed.) Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... Merged Build-Depends: base-files, base-passwd, bash, bsdutils, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit, sysvinit-utils, tar, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 9), perl-base (>= 5.10) Filtered Build-Depends: base-files, base-passwd, bash, bsdutils, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, libc-bin, login, mount, ncurses-base, ncurses-bin, perl-base, sed, sysvinit, sysvinit-utils, tar, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 9), perl-base (>= 5.10) dpkg-deb: building package `sbuild-build-depends-hardening-wrapper-dummy' in `/«BUILDDIR»/resolver-EP_VI6/apt_archive/sbuild-build-depends-hardening-wrapper-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install hardening-wrapper build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: bsdmainutils debhelper file gettext gettext-base groff-base intltool-debian libasprintf0c2 libcroco3 libglib2.0-0 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 autopoint libasprintf-dev libgettextpo-dev libglib2.0-data shared-mime-info xml-core libmail-sendmail-perl The following NEW packages will be installed: bsdmainutils debhelper file gettext gettext-base groff-base intltool-debian libasprintf0c2 libcroco3 libglib2.0-0 libmagic1 libpipeline1 libunistring0 libxml2 man-db po-debconf sbuild-build-depends-hardening-wrapper-dummy 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. Need to get 8826 kB/8827 kB of archives. After this operation, 24.8 MB of additional disk space will be used. Get:1 http://localhost:9999/debian/ unstable/main libpipeline1 amd64 1.2.4-1 [41.0 kB] Get:2 http://localhost:9999/debian/ unstable/main groff-base amd64 1.22.2-3 [747 kB] Get:3 http://localhost:9999/debian/ unstable/main bsdmainutils amd64 9.0.5 [211 kB] Get:4 http://localhost:9999/debian/ unstable/main man-db amd64 2.6.5-2 [976 kB] Get:5 http://localhost:9999/debian/ unstable/main libasprintf0c2 amd64 0.18.3-1 [29.6 kB] Get:6 http://localhost:9999/debian/ unstable/main libmagic1 amd64 1:5.14-2 [216 kB] Get:7 http://localhost:9999/debian/ unstable/main libxml2 amd64 2.9.1+dfsg1-2 [911 kB] Get:8 http://localhost:9999/debian/ unstable/main libglib2.0-0 amd64 2.36.3-3 [2048 kB] Get:9 http://localhost:9999/debian/ unstable/main libcroco3 amd64 0.6.8-2 [133 kB] Get:10 http://localhost:9999/debian/ unstable/main libunistring0 amd64 0.9.3-5 [434 kB] Get:11 http://localhost:9999/debian/ unstable/main file amd64 1:5.14-2 [54.0 kB] Get:12 http://localhost:9999/debian/ unstable/main gettext-base amd64 0.18.3-1 [161 kB] Get:13 http://localhost:9999/debian/ unstable/main gettext amd64 0.18.3-1 [1898 kB] Get:14 http://localhost:9999/debian/ unstable/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:15 http://localhost:9999/debian/ unstable/main po-debconf all 1.0.16+nmu2 [224 kB] Get:16 http://localhost:9999/debian/ unstable/main debhelper all 9.20130630 [710 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 8826 kB in 0s (20.2 MB/s) Selecting previously unselected package libpipeline1:amd64. (Reading database ... 14701 files and directories currently installed.) Unpacking libpipeline1:amd64 (from .../libpipeline1_1.2.4-1_amd64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.22.2-3_amd64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_9.0.5_amd64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.5-2_amd64.deb) ... Selecting previously unselected package libasprintf0c2:amd64. Unpacking libasprintf0c2:amd64 (from .../libasprintf0c2_0.18.3-1_amd64.deb) ... Selecting previously unselected package libmagic1:amd64. Unpacking libmagic1:amd64 (from .../libmagic1_1%3a5.14-2_amd64.deb) ... Selecting previously unselected package libxml2:amd64. Unpacking libxml2:amd64 (from .../libxml2_2.9.1+dfsg1-2_amd64.deb) ... Selecting previously unselected package libglib2.0-0:amd64. Unpacking libglib2.0-0:amd64 (from .../libglib2.0-0_2.36.3-3_amd64.deb) ... Selecting previously unselected package libcroco3:amd64. Unpacking libcroco3:amd64 (from .../libcroco3_0.6.8-2_amd64.deb) ... Selecting previously unselected package libunistring0:amd64. Unpacking libunistring0:amd64 (from .../libunistring0_0.9.3-5_amd64.deb) ... Selecting previously unselected package file. Unpacking file (from .../file_1%3a5.14-2_amd64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.3-1_amd64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.3-1_amd64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_9.20130630_all.deb) ... Selecting previously unselected package sbuild-build-depends-hardening-wrapper-dummy. Unpacking sbuild-build-depends-hardening-wrapper-dummy (from .../sbuild-build-depends-hardening-wrapper-dummy.deb) ... Setting up libpipeline1:amd64 (1.2.4-1) ... Setting up groff-base (1.22.2-3) ... Setting up bsdmainutils (9.0.5) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode Setting up man-db (2.6.5-2) ... Not building database; man-db/auto-update is not 'true'. Setting up libasprintf0c2:amd64 (0.18.3-1) ... Setting up libmagic1:amd64 (1:5.14-2) ... Setting up libxml2:amd64 (2.9.1+dfsg1-2) ... Setting up libglib2.0-0:amd64 (2.36.3-3) ... No schema files found: doing nothing. Setting up libcroco3:amd64 (0.6.8-2) ... Setting up libunistring0:amd64 (0.9.3-5) ... Setting up file (1:5.14-2) ... Setting up gettext-base (0.18.3-1) ... Setting up gettext (0.18.3-1) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2) ... Setting up debhelper (9.20130630) ... Setting up sbuild-build-depends-hardening-wrapper-dummy (0.invalid.0) ... Processing triggers for libc-bin ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-xen-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.23.52.20130620-1 dpkg-dev_1.16.10 g++-4.6_4.6.4-4 g++-4.8_4.8.1-7 gcc-4.6_4.6.4-4 gcc-4.7_4.7.3-6 gcc-4.8_4.8.1-7 libc6-dev_2.17-7 libstdc++-4.8-dev_4.8.1-7 libstdc++6_4.8.1-7 libstdc++6-4.6-dev_4.6.4-4 libstdc++6-4.7-dev_4.7.3-6 linux-libc-dev_3.10.1-1 Package versions: apt_0.9.9.2 base-files_7.2 base-passwd_3.5.26 bash_4.2+dfsg-1 binutils_2.23.52.20130620-1 bsdmainutils_9.0.5 bsdutils_1:2.20.1-5.5 build-essential_11.6 bzip2_1.0.6-4 clang-3.3_1:3.3-3 coreutils_8.20-3 cpp_4:4.8.1-2 cpp-4.6_4.6.4-4 cpp-4.7_4.7.3-6 cpp-4.8_4.8.1-7 dash_0.5.7-3 debconf_1.5.50 debconf-i18n_1.5.50 debfoster_2.7-1.2 debhelper_9.20130630 debian-archive-keyring_2012.4 debianutils_4.3.4 diffutils_1:3.2-8 dpkg_1.16.10 dpkg-dev_1.16.10 e2fslibs_1.42.8-1 e2fsprogs_1.42.8-1 fakeroot_1.19-2 file_1:5.14-2 findutils_4.4.2-6 g++_4:4.8.1-2 g++-4.6_4.6.4-4 g++-4.8_4.8.1-7 gcc_4:4.8.1-2 gcc-4.4-base_4.4.7-4 gcc-4.5-base_4.5.4-1 gcc-4.6_4.6.4-4 gcc-4.6-base_4.6.4-4 gcc-4.7_4.7.3-6 gcc-4.7-base_4.7.3-6 gcc-4.8_4.8.1-7 gcc-4.8-base_4.8.1-7 gettext_0.18.3-1 gettext-base_0.18.3-1 gnupg_1.4.12-7 gpgv_1.4.12-7 grep_2.14-2 groff-base_1.22.2-3 gzip_1.6-1 hostname_3.13 initscripts_2.88dsf-43 insserv_1.14.0-5 intltool-debian_0.35.0+20060710.1 libacl1_2.2.52-1 libapt-pkg4.12_0.9.9.2 libasan0_4.8.1-7 libasprintf0c2_0.18.3-1 libatomic1_4.8.1-7 libattr1_1:2.4.47-1 libblkid1_2.20.1-5.5 libbz2-1.0_1.0.6-4 libc-bin_2.17-7 libc-dev-bin_2.17-7 libc6_2.17-7 libc6-dev_2.17-7 libcap2_1:2.22-1.2 libclang-common-3.3-dev_1:3.3-3 libclang1-3.3_1:3.3-3 libclass-isa-perl_0.36-5 libcloog-isl4_0.18.0-2 libcloog-ppl1_0.16.1-3 libcomerr2_1.42.8-1 libcroco3_0.6.8-2 libdb5.1_5.1.29-6 libdpkg-perl_1.16.10 libffi6_3.0.13-4 libfile-fcntllock-perl_0.14-2 libgc1c2_1:7.2d-5 libgcc-4.7-dev_4.7.3-6 libgcc-4.8-dev_4.8.1-7 libgcc1_1:4.8.1-7 libgdbm3_1.8.3-12 libglib2.0-0_2.36.3-3 libgmp10_2:5.1.2+dfsg-2 libgmpxx4ldbl_2:5.1.2+dfsg-2 libgomp1_4.8.1-7 libgpm2_1.20.4-6.1 libisl10_0.11.2-1 libitm1_4.8.1-7 libllvm3.3_1:3.3-3 liblocale-gettext-perl_1.05-7+b1 liblzma5_5.1.1alpha+20120614-2 libmagic1_1:5.14-2 libmount1_2.20.1-5.5 libmpc2_0.9-4 libmpc3_1.0.1-1 libmpfr4_3.1.1-1 libncurses5_5.9+20130608-1 libobjc-4.7-dev_4.7.3-6 libobjc4_4.8.1-7 libpam-modules_1.1.3-9 libpam-modules-bin_1.1.3-9 libpam-runtime_1.1.3-9 libpam0g_1.1.3-9 libpcre3_1:8.31-2 libpipeline1_1.2.4-1 libppl-c4_1:1.0-7 libppl12_1:1.0-7 libquadmath0_4.8.1-7 libreadline6_6.2+dfsg-0.1 libselinux1_2.1.13-2 libsemanage-common_2.1.10-2 libsemanage1_2.1.10-2 libsepol1_2.1.9-2 libslang2_2.2.4-15 libss2_1.42.8-1 libstdc++-4.8-dev_4.8.1-7 libstdc++6_4.8.1-7 libstdc++6-4.6-dev_4.6.4-4 libstdc++6-4.7-dev_4.7.3-6 libswitch-perl_2.16-2 libtext-charwidth-perl_0.04-7+b1 libtext-iconv-perl_1.7-5 libtext-wrapi18n-perl_0.06-7 libtimedate-perl_1.2000-1 libtinfo5_5.9+20130608-1 libtsan0_4.8.1-7 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-23.2 libustr-1.0-1_1.0.4-3 libuuid1_2.20.1-5.5 libxml2_2.9.1+dfsg1-2 linux-libc-dev_3.10.1-1 login_1:4.1.5.1-1 lsb-base_4.1+Debian12 make_3.81-8.2 man-db_2.6.5-2 mawk_1.3.3-17 mount_2.20.1-5.5 multiarch-support_2.17-7 ncurses-base_5.9+20130608-1 ncurses-bin_5.9+20130608-1 passwd_1:4.1.5.1-1 patch_2.7.1-3 perl_5.14.2-21 perl-base_5.14.2-21 perl-modules_5.14.2-21 po-debconf_1.0.16+nmu2 readline-common_6.2+dfsg-0.1 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-hardening-wrapper-dummy_0.invalid.0 sed_4.2.2-1 sensible-utils_0.0.9 sudo_1.8.5p2-1+nmu1 sysv-rc_2.88dsf-43 sysvinit_2.88dsf-43 sysvinit-utils_2.88dsf-43 tar_1.26+dfsg-6 tzdata_2013c-2 ucf_3.0027+nmu1 util-linux_2.20.1-5.5 vim_2:7.3.923-3 vim-common_2:7.3.923-3 vim-runtime_2:7.3.923-3 xz-utils_5.1.1alpha+20120614-2 zlib1g_1:1.2.8.dfsg-1 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/sbuild-nonexistent/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Mon Dec 17 00:20:36 2012 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_2.3.dsc dpkg-source: info: extracting hardening-wrapper in hardening-wrapper-2.3clang1 dpkg-source: info: unpacking hardening-wrapper_2.3.tar.gz Check disc space ──────────────── Sufficient free space for build Hack binNMU version ─────────────────── Created changelog entry for binNMU version 2.3clang1 User Environment ──────────────── HOME=/sbuild-nonexistent LOGNAME=user PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_ALIAS_NAME=unstable-amd64-sbuild SCHROOT_CHROOT_NAME=unstable-amd64-sbuild SCHROOT_COMMAND=env SCHROOT_GID=1000 SCHROOT_GROUP=user SCHROOT_SESSION_ID=unstable-amd64-sbuild-1c7c07a0-2244-40b8-a95e-fab56fdff992 SCHROOT_UID=1000 SCHROOT_USER=user SHELL=/bin/sh USER=user dpkg-buildpackage ───────────────── dpkg-buildpackage: source package hardening-wrapper dpkg-buildpackage: source version 2.3clang1 dpkg-source --before-build hardening-wrapper-2.3clang1 dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dh clean dh_testdir dh_auto_clean make[1]: Entering directory `/«PKGBUILDDIR»' rm -rf build-tree make[1]: Leaving directory `/«PKGBUILDDIR»' dh_clean debian/rules build-arch dh build-arch dh_testdir -a dh_auto_configure -a dh_auto_build -a make[1]: Entering directory `/«PKGBUILDDIR»' if [ -z "amd64" ]; then echo No DEB_HOST_ARCH; exit 1; fi if [ -z "linux" ]; then echo No DEB_HOST_ARCH_OS; exit 1; fi mkdir -p build-tree # Construct wrappers. install hardened-cc hardened-ld build-tree/ # Set defaults, based on OS and ARCH. perl -pi -e 's/ #OS#/ '"linux"'/; s/ #ARCH#/ '"amd64"'/;' build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_PIE'}=1;/default{'DEB_BUILD_HARDENING_PIE'}=1;/;" build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default{'DEB_BUILD_HARDENING_STACKPROTECTOR'}=1;/default{'DEB_BUILD_HARDENING_STACKPROTECTOR'}=1;/;" build-tree/hardened-cc build-tree/hardened-ld # Duplicate cc wrapper to c++. install build-tree/hardened-cc build-tree/hardened-c++ perl -pi -e 's/hardened-cc/hardened-c++/g; s|/usr/bin/cc|/usr/bin/c++|g;' build-tree/hardened-c++ # Construct tools. install hardening.make hardening-check build-tree/ # Do not use "shell" here because it eats newlines. We want those. perl -pi -e "s/^my %libc;/my %libc = (\n$(perl hardening-check --find-libc-functions /bin/ls)\n);/;" build-tree/hardening-check # Construct man pages. install hardened-cc.1 hardened-ld.1 build-tree/ pod2man hardening-check > build-tree/hardening-check.1 # Duplicate cc man page to c++. install build-tree/hardened-cc.1 build-tree/hardened-c++.1 perl -pi -e 's/hardened-cc/hardened-c++/g; s/gcc/g++/g;' build-tree/hardened-c++.1 touch build-tree/stamp-build make[1]: Leaving directory `/«PKGBUILDDIR»' dh_auto_test -a make[1]: Entering directory `/«PKGBUILDDIR»' make -C tests check make[2]: Entering directory `/«PKGBUILDDIR»/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 (0x4005e0) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x2b1df5c837e0) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x2ad07282d7e0) make -f Makefile.wrapper check make[3]: Entering directory `/«PKGBUILDDIR»/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/clang -B ../build-tree/ -o ../build-tree/wrapper-test-stock hello.c readelf -ldrsW ../build-tree/wrapper-test-stock Elf file type is EXEC (Executable file) Entry point 0x400480 There are 8 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000400040 0x0000000000400040 0x0001c0 0x0001c0 R E 0x8 INTERP 0x000200 0x0000000000400200 0x0000000000400200 0x00001c 0x00001c R 0x1 [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] LOAD 0x000000 0x0000000000400000 0x0000000000400000 0x000804 0x000804 R E 0x200000 LOAD 0x000808 0x0000000000600808 0x0000000000600808 0x000248 0x000250 RW 0x200000 DYNAMIC 0x000820 0x0000000000600820 0x0000000000600820 0x0001e0 0x0001e0 RW 0x8 NOTE 0x00021c 0x000000000040021c 0x000000000040021c 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x0006d4 0x00000000004006d4 0x00000000004006d4 0x00003c 0x00003c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .hash .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 Dynamic section at offset 0x820 contains 25 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x400408 0x000000000000000d (FINI) 0x4006b4 0x0000000000000019 (INIT_ARRAY) 0x600808 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x600810 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x0000000000000004 (HASH) 0x400260 0x000000006ffffef5 (GNU_HASH) 0x400288 0x0000000000000005 (STRTAB) 0x400320 0x0000000000000006 (SYMTAB) 0x4002a8 0x000000000000000a (STRSZ) 65 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x600a08 0x0000000000000002 (PLTRELSZ) 96 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x4003a8 0x0000000000000007 (RELA) 0x400390 0x0000000000000008 (RELASZ) 24 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x400370 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x400362 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x390 contains 1 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000600a00 0000000400000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 Relocation section '.rela.plt' at offset 0x3a8 contains 4 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000600a20 0000000100000007 R_X86_64_JUMP_SLOT 0000000000000000 printf + 0 0000000000600a28 0000000200000007 R_X86_64_JUMP_SLOT 0000000000000000 snprintf + 0 0000000000600a30 0000000300000007 R_X86_64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000600a38 0000000400000007 R_X86_64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 Symbol table '.dynsym' contains 5 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.2.5 (2) 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.2.5 (2) 3: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.2.5 (2) 4: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ Symbol table '.symtab' contains 68 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000400200 0 SECTION LOCAL DEFAULT 1 2: 000000000040021c 0 SECTION LOCAL DEFAULT 2 3: 000000000040023c 0 SECTION LOCAL DEFAULT 3 4: 0000000000400260 0 SECTION LOCAL DEFAULT 4 5: 0000000000400288 0 SECTION LOCAL DEFAULT 5 6: 00000000004002a8 0 SECTION LOCAL DEFAULT 6 7: 0000000000400320 0 SECTION LOCAL DEFAULT 7 8: 0000000000400362 0 SECTION LOCAL DEFAULT 8 9: 0000000000400370 0 SECTION LOCAL DEFAULT 9 10: 0000000000400390 0 SECTION LOCAL DEFAULT 10 11: 00000000004003a8 0 SECTION LOCAL DEFAULT 11 12: 0000000000400408 0 SECTION LOCAL DEFAULT 12 13: 0000000000400430 0 SECTION LOCAL DEFAULT 13 14: 0000000000400480 0 SECTION LOCAL DEFAULT 14 15: 00000000004006b4 0 SECTION LOCAL DEFAULT 15 16: 00000000004006c0 0 SECTION LOCAL DEFAULT 16 17: 00000000004006d4 0 SECTION LOCAL DEFAULT 17 18: 0000000000400710 0 SECTION LOCAL DEFAULT 18 19: 0000000000600808 0 SECTION LOCAL DEFAULT 19 20: 0000000000600810 0 SECTION LOCAL DEFAULT 20 21: 0000000000600818 0 SECTION LOCAL DEFAULT 21 22: 0000000000600820 0 SECTION LOCAL DEFAULT 22 23: 0000000000600a00 0 SECTION LOCAL DEFAULT 23 24: 0000000000600a08 0 SECTION LOCAL DEFAULT 24 25: 0000000000600a40 0 SECTION LOCAL DEFAULT 25 26: 0000000000600a50 0 SECTION LOCAL DEFAULT 26 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 28: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 29: 0000000000600818 0 OBJECT LOCAL DEFAULT 21 __JCR_LIST__ 30: 00000000004004b0 0 FUNC LOCAL DEFAULT 14 deregister_tm_clones 31: 00000000004004e0 0 FUNC LOCAL DEFAULT 14 register_tm_clones 32: 0000000000400520 0 FUNC LOCAL DEFAULT 14 __do_global_dtors_aux 33: 0000000000600a50 1 OBJECT LOCAL DEFAULT 26 completed.6391 34: 0000000000600810 0 OBJECT LOCAL DEFAULT 20 __do_global_dtors_aux_fini_array_entry 35: 0000000000400540 0 FUNC LOCAL DEFAULT 14 frame_dummy 36: 0000000000600808 0 OBJECT LOCAL DEFAULT 19 __frame_dummy_init_array_entry 37: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 38: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 39: 0000000000400800 0 OBJECT LOCAL DEFAULT 18 __FRAME_END__ 40: 0000000000600818 0 OBJECT LOCAL DEFAULT 21 __JCR_END__ 41: 0000000000000000 0 FILE LOCAL DEFAULT ABS 42: 0000000000600810 0 NOTYPE LOCAL DEFAULT 19 __init_array_end 43: 0000000000600820 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC 44: 0000000000600808 0 NOTYPE LOCAL DEFAULT 19 __init_array_start 45: 0000000000600a08 0 OBJECT LOCAL DEFAULT 24 _GLOBAL_OFFSET_TABLE_ 46: 00000000004006b0 2 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 47: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 48: 0000000000600a40 0 NOTYPE WEAK DEFAULT 25 data_start 49: 0000000000600a50 0 NOTYPE GLOBAL DEFAULT 25 _edata 50: 00000000004006b4 0 FUNC GLOBAL DEFAULT 15 _fini 51: 0000000000000000 0 FUNC GLOBAL DEFAULT UND printf@@GLIBC_2.2.5 52: 0000000000000000 0 FUNC GLOBAL DEFAULT UND snprintf@@GLIBC_2.2.5 53: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.2.5 54: 0000000000600a40 0 NOTYPE GLOBAL DEFAULT 25 __data_start 55: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 56: 0000000000600a48 0 OBJECT GLOBAL HIDDEN 25 __dso_handle 57: 0000000000400570 99 FUNC GLOBAL DEFAULT 14 announcement 58: 00000000004006c0 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 59: 0000000000400620 137 FUNC GLOBAL DEFAULT 14 __libc_csu_init 60: 0000000000600a58 0 NOTYPE GLOBAL DEFAULT 26 _end 61: 0000000000400480 0 FUNC GLOBAL DEFAULT 14 _start 62: 0000000000600a50 0 NOTYPE GLOBAL DEFAULT 26 __bss_start 63: 00000000004005e0 57 FUNC GLOBAL DEFAULT 14 main 64: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 65: 0000000000600a50 0 OBJECT GLOBAL HIDDEN 25 __TMC_END__ 66: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 67: 0000000000400408 0 FUNC GLOBAL DEFAULT 12 _init ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0x400570) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-compiled hello.c /usr/bin/clang -fstack-protector --param=ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-compiled hello.c readelf -ldrsW ../build-tree/wrapper-test-compiled Elf file type is DYN (Shared object file) Entry point 0x790 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 0x0001f8 R E 0x8 INTERP 0x000238 0x0000000000000238 0x0000000000000238 0x00001c 0x00001c R 0x1 [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000bb4 0x000bb4 R E 0x200000 LOAD 0x000de0 0x0000000000200de0 0x0000000000200de0 0x000278 0x000280 RW 0x200000 DYNAMIC 0x000df8 0x0000000000200df8 0x0000000000200df8 0x0001e0 0x0001e0 RW 0x8 NOTE 0x000254 0x0000000000000254 0x0000000000000254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x000a84 0x0000000000000a84 0x0000000000000a84 0x00003c 0x00003c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x000de0 0x0000000000200de0 0x0000000000200de0 0x000220 0x000220 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .hash .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .got.plt .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xdf8 contains 26 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x700 0x000000000000000d (FINI) 0xa64 0x0000000000000019 (INIT_ARRAY) 0x200de0 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x200de8 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x0000000000000004 (HASH) 0x298 0x000000006ffffef5 (GNU_HASH) 0x2e8 0x0000000000000005 (STRTAB) 0x468 0x0000000000000006 (SYMTAB) 0x318 0x000000000000000a (STRSZ) 236 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x201000 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x670 0x0000000000000007 (RELA) 0x5b0 0x0000000000000008 (RELASZ) 192 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x000000006ffffffe (VERNEED) 0x570 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x554 0x000000006ffffff9 (RELACOUNT) 3 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x5b0 contains 8 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000200de0 0000000000000008 R_X86_64_RELATIVE 870 0000000000200de8 0000000000000008 R_X86_64_RELATIVE 830 0000000000201050 0000000000000008 R_X86_64_RELATIVE 201050 0000000000200fd8 0000000300000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 0000000000200fe0 0000000600000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000200fe8 0000000800000006 R_X86_64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0 0000000000200ff0 0000000900000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 0000000000200ff8 0000000a00000006 R_X86_64_GLOB_DAT 0000000000000000 __cxa_finalize + 0 Relocation section '.rela.plt' at offset 0x670 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000201018 0000000200000007 R_X86_64_JUMP_SLOT 0000000000000000 __snprintf_chk + 0 0000000000201020 0000000400000007 R_X86_64_JUMP_SLOT 0000000000000000 __stack_chk_fail + 0 0000000000201028 0000000500000007 R_X86_64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000201030 0000000600000007 R_X86_64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000201038 0000000700000007 R_X86_64_JUMP_SLOT 0000000000000000 __printf_chk + 0 0000000000201040 0000000a00000007 R_X86_64_JUMP_SLOT 0000000000000000 __cxa_finalize + 0 Symbol table '.dynsym' contains 14 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __snprintf_chk@GLIBC_2.3.4 (2) 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (3) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.2.5 (4) 6: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 (2) 8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 9: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 10: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (4) 11: 0000000000201058 0 NOTYPE GLOBAL DEFAULT 25 _edata 12: 0000000000201060 0 NOTYPE GLOBAL DEFAULT 26 _end 13: 0000000000201058 0 NOTYPE GLOBAL DEFAULT 26 __bss_start Symbol table '.symtab' contains 75 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 2: 0000000000000254 0 SECTION LOCAL DEFAULT 2 3: 0000000000000274 0 SECTION LOCAL DEFAULT 3 4: 0000000000000298 0 SECTION LOCAL DEFAULT 4 5: 00000000000002e8 0 SECTION LOCAL DEFAULT 5 6: 0000000000000318 0 SECTION LOCAL DEFAULT 6 7: 0000000000000468 0 SECTION LOCAL DEFAULT 7 8: 0000000000000554 0 SECTION LOCAL DEFAULT 8 9: 0000000000000570 0 SECTION LOCAL DEFAULT 9 10: 00000000000005b0 0 SECTION LOCAL DEFAULT 10 11: 0000000000000670 0 SECTION LOCAL DEFAULT 11 12: 0000000000000700 0 SECTION LOCAL DEFAULT 12 13: 0000000000000720 0 SECTION LOCAL DEFAULT 13 14: 0000000000000790 0 SECTION LOCAL DEFAULT 14 15: 0000000000000a64 0 SECTION LOCAL DEFAULT 15 16: 0000000000000a70 0 SECTION LOCAL DEFAULT 16 17: 0000000000000a84 0 SECTION LOCAL DEFAULT 17 18: 0000000000000ac0 0 SECTION LOCAL DEFAULT 18 19: 0000000000200de0 0 SECTION LOCAL DEFAULT 19 20: 0000000000200de8 0 SECTION LOCAL DEFAULT 20 21: 0000000000200df0 0 SECTION LOCAL DEFAULT 21 22: 0000000000200df8 0 SECTION LOCAL DEFAULT 22 23: 0000000000200fd8 0 SECTION LOCAL DEFAULT 23 24: 0000000000201000 0 SECTION LOCAL DEFAULT 24 25: 0000000000201048 0 SECTION LOCAL DEFAULT 25 26: 0000000000201058 0 SECTION LOCAL DEFAULT 26 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 32: 0000000000000000 0 SECTION LOCAL DEFAULT 32 33: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 34: 0000000000200df0 0 OBJECT LOCAL DEFAULT 21 __JCR_LIST__ 35: 00000000000007c0 0 FUNC LOCAL DEFAULT 14 deregister_tm_clones 36: 00000000000007f0 0 FUNC LOCAL DEFAULT 14 register_tm_clones 37: 0000000000000830 0 FUNC LOCAL DEFAULT 14 __do_global_dtors_aux 38: 0000000000201058 1 OBJECT LOCAL DEFAULT 26 completed.6391 39: 0000000000200de8 0 OBJECT LOCAL DEFAULT 20 __do_global_dtors_aux_fini_array_entry 40: 0000000000000870 0 FUNC LOCAL DEFAULT 14 frame_dummy 41: 0000000000200de0 0 OBJECT LOCAL DEFAULT 19 __frame_dummy_init_array_entry 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 43: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 44: 0000000000000bb0 0 OBJECT LOCAL DEFAULT 18 __FRAME_END__ 45: 0000000000200df0 0 OBJECT LOCAL DEFAULT 21 __JCR_END__ 46: 0000000000000000 0 FILE LOCAL DEFAULT ABS 47: 0000000000200de8 0 NOTYPE LOCAL DEFAULT 19 __init_array_end 48: 0000000000200df8 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC 49: 0000000000200de0 0 NOTYPE LOCAL DEFAULT 19 __init_array_start 50: 0000000000201000 0 OBJECT LOCAL DEFAULT 24 _GLOBAL_OFFSET_TABLE_ 51: 0000000000000a60 2 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 52: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __snprintf_chk@@GLIBC_2.3.4 53: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 54: 0000000000201048 0 NOTYPE WEAK DEFAULT 25 data_start 55: 0000000000201058 0 NOTYPE GLOBAL DEFAULT 25 _edata 56: 0000000000000a64 0 FUNC GLOBAL DEFAULT 15 _fini 57: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 58: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.2.5 59: 0000000000201048 0 NOTYPE GLOBAL DEFAULT 25 __data_start 60: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 61: 0000000000201050 0 OBJECT GLOBAL HIDDEN 25 __dso_handle 62: 00000000000008b0 129 FUNC GLOBAL DEFAULT 14 announcement 63: 0000000000000a70 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 64: 00000000000009d0 137 FUNC GLOBAL DEFAULT 14 __libc_csu_init 65: 0000000000201060 0 NOTYPE GLOBAL DEFAULT 26 _end 66: 0000000000000790 0 FUNC GLOBAL DEFAULT 14 _start 67: 0000000000201058 0 NOTYPE GLOBAL DEFAULT 26 __bss_start 68: 0000000000000940 134 FUNC GLOBAL DEFAULT 14 main 69: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.3.4 70: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 71: 0000000000201058 0 OBJECT GLOBAL HIDDEN 25 __TMC_END__ 72: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 73: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.2.5 74: 0000000000000700 0 FUNC GLOBAL DEFAULT 12 _init # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x2b1f742738b0) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x2af9a0e3f8b0) # Enable symlink for ld to trick gcc into doing wrapped linking (cd ../build-tree && ln -s hardened-ld ld) (cd ../build-tree && ln -s hardened-ld ld.gold) # Compiler and linker options enabled. ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-linked hello.c /usr/bin/clang -fstack-protector --param=ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-linked hello.c /usr/bin/ld.bfd -z now -pie --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o ../build-tree/wrapper-test-linked /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/llvm-3.3/lib/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -L/lib -L/usr/lib -z relro /tmp/hello-kfnk70.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is DYN (Shared object file) Entry point 0x790 There are 9 program headers, starting at offset 64 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x0001f8 0x0001f8 R E 0x8 INTERP 0x000238 0x0000000000000238 0x0000000000000238 0x00001c 0x00001c R 0x1 [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000bb4 0x000bb4 R E 0x200000 LOAD 0x000d78 0x0000000000200d78 0x0000000000200d78 0x000298 0x0002a0 RW 0x200000 DYNAMIC 0x000d90 0x0000000000200d90 0x0000000000200d90 0x000200 0x000200 RW 0x8 NOTE 0x000254 0x0000000000000254 0x0000000000000254 0x000044 0x000044 R 0x4 GNU_EH_FRAME 0x000a84 0x0000000000000a84 0x0000000000000a84 0x00003c 0x00003c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0x10 GNU_RELRO 0x000d78 0x0000000000200d78 0x0000000000200d78 0x000288 0x000288 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .hash .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rela.dyn .rela.plt .init .plt .text .fini .rodata .eh_frame_hdr .eh_frame 03 .init_array .fini_array .jcr .dynamic .got .data .bss 04 .dynamic 05 .note.ABI-tag .note.gnu.build-id 06 .eh_frame_hdr 07 08 .init_array .fini_array .jcr .dynamic .got Dynamic section at offset 0xd90 contains 28 entries: Tag Type Name/Value 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x000000000000000c (INIT) 0x700 0x000000000000000d (FINI) 0xa64 0x0000000000000019 (INIT_ARRAY) 0x200d78 0x000000000000001b (INIT_ARRAYSZ) 8 (bytes) 0x000000000000001a (FINI_ARRAY) 0x200d80 0x000000000000001c (FINI_ARRAYSZ) 8 (bytes) 0x0000000000000004 (HASH) 0x298 0x000000006ffffef5 (GNU_HASH) 0x2e8 0x0000000000000005 (STRTAB) 0x468 0x0000000000000006 (SYMTAB) 0x318 0x000000000000000a (STRSZ) 236 (bytes) 0x000000000000000b (SYMENT) 24 (bytes) 0x0000000000000015 (DEBUG) 0x0 0x0000000000000003 (PLTGOT) 0x200f90 0x0000000000000002 (PLTRELSZ) 144 (bytes) 0x0000000000000014 (PLTREL) RELA 0x0000000000000017 (JMPREL) 0x670 0x0000000000000007 (RELA) 0x5b0 0x0000000000000008 (RELASZ) 192 (bytes) 0x0000000000000009 (RELAENT) 24 (bytes) 0x0000000000000018 (BIND_NOW) 0x000000006ffffffb (FLAGS_1) Flags: NOW 0x000000006ffffffe (VERNEED) 0x570 0x000000006fffffff (VERNEEDNUM) 1 0x000000006ffffff0 (VERSYM) 0x554 0x000000006ffffff9 (RELACOUNT) 3 0x0000000000000000 (NULL) 0x0 Relocation section '.rela.dyn' at offset 0x5b0 contains 8 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000200d78 0000000000000008 R_X86_64_RELATIVE 870 0000000000200d80 0000000000000008 R_X86_64_RELATIVE 830 0000000000201008 0000000000000008 R_X86_64_RELATIVE 201008 0000000000200fd8 0000000300000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_deregisterTMCloneTable + 0 0000000000200fe0 0000000600000006 R_X86_64_GLOB_DAT 0000000000000000 __gmon_start__ + 0 0000000000200fe8 0000000800000006 R_X86_64_GLOB_DAT 0000000000000000 _Jv_RegisterClasses + 0 0000000000200ff0 0000000900000006 R_X86_64_GLOB_DAT 0000000000000000 _ITM_registerTMCloneTable + 0 0000000000200ff8 0000000a00000006 R_X86_64_GLOB_DAT 0000000000000000 __cxa_finalize + 0 Relocation section '.rela.plt' at offset 0x670 contains 6 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000200fa8 0000000200000007 R_X86_64_JUMP_SLOT 0000000000000000 __snprintf_chk + 0 0000000000200fb0 0000000400000007 R_X86_64_JUMP_SLOT 0000000000000000 __stack_chk_fail + 0 0000000000200fb8 0000000500000007 R_X86_64_JUMP_SLOT 0000000000000000 __libc_start_main + 0 0000000000200fc0 0000000600000007 R_X86_64_JUMP_SLOT 0000000000000000 __gmon_start__ + 0 0000000000200fc8 0000000700000007 R_X86_64_JUMP_SLOT 0000000000000000 __printf_chk + 0 0000000000200fd0 0000000a00000007 R_X86_64_JUMP_SLOT 0000000000000000 __cxa_finalize + 0 Symbol table '.dynsym' contains 14 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 2: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __snprintf_chk@GLIBC_2.3.4 (2) 3: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 4: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (3) 5: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.2.5 (4) 6: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 7: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 (2) 8: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 9: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 10: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.2.5 (4) 11: 0000000000201010 0 NOTYPE GLOBAL DEFAULT 24 _edata 12: 0000000000201018 0 NOTYPE GLOBAL DEFAULT 25 _end 13: 0000000000201010 0 NOTYPE GLOBAL DEFAULT 25 __bss_start Symbol table '.symtab' contains 74 entries: Num: Value Size Type Bind Vis Ndx Name 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND 1: 0000000000000238 0 SECTION LOCAL DEFAULT 1 2: 0000000000000254 0 SECTION LOCAL DEFAULT 2 3: 0000000000000274 0 SECTION LOCAL DEFAULT 3 4: 0000000000000298 0 SECTION LOCAL DEFAULT 4 5: 00000000000002e8 0 SECTION LOCAL DEFAULT 5 6: 0000000000000318 0 SECTION LOCAL DEFAULT 6 7: 0000000000000468 0 SECTION LOCAL DEFAULT 7 8: 0000000000000554 0 SECTION LOCAL DEFAULT 8 9: 0000000000000570 0 SECTION LOCAL DEFAULT 9 10: 00000000000005b0 0 SECTION LOCAL DEFAULT 10 11: 0000000000000670 0 SECTION LOCAL DEFAULT 11 12: 0000000000000700 0 SECTION LOCAL DEFAULT 12 13: 0000000000000720 0 SECTION LOCAL DEFAULT 13 14: 0000000000000790 0 SECTION LOCAL DEFAULT 14 15: 0000000000000a64 0 SECTION LOCAL DEFAULT 15 16: 0000000000000a70 0 SECTION LOCAL DEFAULT 16 17: 0000000000000a84 0 SECTION LOCAL DEFAULT 17 18: 0000000000000ac0 0 SECTION LOCAL DEFAULT 18 19: 0000000000200d78 0 SECTION LOCAL DEFAULT 19 20: 0000000000200d80 0 SECTION LOCAL DEFAULT 20 21: 0000000000200d88 0 SECTION LOCAL DEFAULT 21 22: 0000000000200d90 0 SECTION LOCAL DEFAULT 22 23: 0000000000200f90 0 SECTION LOCAL DEFAULT 23 24: 0000000000201000 0 SECTION LOCAL DEFAULT 24 25: 0000000000201010 0 SECTION LOCAL DEFAULT 25 26: 0000000000000000 0 SECTION LOCAL DEFAULT 26 27: 0000000000000000 0 SECTION LOCAL DEFAULT 27 28: 0000000000000000 0 SECTION LOCAL DEFAULT 28 29: 0000000000000000 0 SECTION LOCAL DEFAULT 29 30: 0000000000000000 0 SECTION LOCAL DEFAULT 30 31: 0000000000000000 0 SECTION LOCAL DEFAULT 31 32: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 33: 0000000000200d88 0 OBJECT LOCAL DEFAULT 21 __JCR_LIST__ 34: 00000000000007c0 0 FUNC LOCAL DEFAULT 14 deregister_tm_clones 35: 00000000000007f0 0 FUNC LOCAL DEFAULT 14 register_tm_clones 36: 0000000000000830 0 FUNC LOCAL DEFAULT 14 __do_global_dtors_aux 37: 0000000000201010 1 OBJECT LOCAL DEFAULT 25 completed.6391 38: 0000000000200d80 0 OBJECT LOCAL DEFAULT 20 __do_global_dtors_aux_fini_array_entry 39: 0000000000000870 0 FUNC LOCAL DEFAULT 14 frame_dummy 40: 0000000000200d78 0 OBJECT LOCAL DEFAULT 19 __frame_dummy_init_array_entry 41: 0000000000000000 0 FILE LOCAL DEFAULT ABS hello.c 42: 0000000000000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 43: 0000000000000bb0 0 OBJECT LOCAL DEFAULT 18 __FRAME_END__ 44: 0000000000200d88 0 OBJECT LOCAL DEFAULT 21 __JCR_END__ 45: 0000000000000000 0 FILE LOCAL DEFAULT ABS 46: 0000000000200d80 0 NOTYPE LOCAL DEFAULT 19 __init_array_end 47: 0000000000200d90 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC 48: 0000000000200d78 0 NOTYPE LOCAL DEFAULT 19 __init_array_start 49: 0000000000200f90 0 OBJECT LOCAL DEFAULT 23 _GLOBAL_OFFSET_TABLE_ 50: 0000000000000a60 2 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 51: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __snprintf_chk@@GLIBC_2.3.4 52: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 53: 0000000000201000 0 NOTYPE WEAK DEFAULT 24 data_start 54: 0000000000201010 0 NOTYPE GLOBAL DEFAULT 24 _edata 55: 0000000000000a64 0 FUNC GLOBAL DEFAULT 15 _fini 56: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@@GLIBC_2.4 57: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@@GLIBC_2.2.5 58: 0000000000201000 0 NOTYPE GLOBAL DEFAULT 24 __data_start 59: 0000000000000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 60: 0000000000201008 0 OBJECT GLOBAL HIDDEN 24 __dso_handle 61: 00000000000008b0 129 FUNC GLOBAL DEFAULT 14 announcement 62: 0000000000000a70 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 63: 00000000000009d0 137 FUNC GLOBAL DEFAULT 14 __libc_csu_init 64: 0000000000201018 0 NOTYPE GLOBAL DEFAULT 25 _end 65: 0000000000000790 0 FUNC GLOBAL DEFAULT 14 _start 66: 0000000000201010 0 NOTYPE GLOBAL DEFAULT 25 __bss_start 67: 0000000000000940 134 FUNC GLOBAL DEFAULT 14 main 68: 0000000000000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@@GLIBC_2.3.4 69: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _Jv_RegisterClasses 70: 0000000000201010 0 OBJECT GLOBAL HIDDEN 24 __TMC_END__ 71: 0000000000000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 72: 0000000000000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@@GLIBC_2.2.5 73: 0000000000000700 0 FUNC GLOBAL DEFAULT 12 _init # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x2b9e2d8058b0) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x2ac5c51348b0) # Check state of hardening features via check script perl ../build-tree/hardening-check ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes Read-only relocations: yes Immediate binding: yes # Manually check state of hardening features # Test PIE readelf -lW ../build-tree/wrapper-test-linked | grep '^Elf file type is DYN' Elf file type is DYN (Shared object file) # Test Stack Protector nm ../build-tree/wrapper-test-linked | egrep '__stack_chk_fail($|@@GLIBC)' U __stack_chk_fail@@GLIBC_2.4 # Test Fortify nm ../build-tree/wrapper-test-linked | egrep '__(sn)?printf_chk($|@@GLIBC)' U __printf_chk@@GLIBC_2.3.4 U __snprintf_chk@@GLIBC_2.3.4 # Test Format (no-op currently) # Test for RELRO readelf -lW ../build-tree/wrapper-test-linked | grep GNU_RELRO GNU_RELRO 0x000d78 0x0000000000200d78 0x0000000000200d78 0x000288 0x000288 R 0x1 # Test for BIND_NOW readelf -dW ../build-tree/wrapper-test-linked | grep BIND_NOW 0x0000000000000018 (BIND_NOW) # Build directly with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/clang -fstack-protector --param=ssp-buffer-size=4 -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC-direct hello.c /usr/bin/ld.bfd -z now -pie --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o ../build-tree/wrapper-test-fPIC-direct /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/llvm-3.3/lib/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -L/lib -L/usr/lib -z relro /tmp/hello-luH0Pp.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o ../build-tree/wrapper-test-fPIC-direct ../build-tree/wrapper-test-fPIC-direct: ok (0x2b8b4d1ad8b0) # Build .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC.o -c hello.c /usr/bin/clang -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC.o -c hello.c clang: warning: -Wl,-z,relro: 'linker' input unused # Link .o with -fPIC already defined ../build-tree/hardened-cc -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/clang -fstack-protector --param=ssp-buffer-size=4 -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -fPIC -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC.o /usr/bin/ld.bfd -z now -pie --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o ../build-tree/wrapper-test-fPIC /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/llvm-3.3/lib/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -L/lib -L/usr/lib -z relro ../build-tree/wrapper-test-fPIC.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o ../build-tree/wrapper-test-fPIC ../build-tree/wrapper-test-fPIC: ok (0x2afa4f27a8b0) # Make sure build fails due to -Werror=format-security ! ../build-tree/hardened-cc -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/clang -fstack-protector --param=ssp-buffer-size=4 -fPIE -pie -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -O2 -Wl,-z,relro -o ../build-tree/wrapper-test-format-security format.c /usr/bin/ld.bfd -z now -pie --hash-style=both --build-id --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o ../build-tree/wrapper-test-format-security /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/lib/x86_64-linux-gnu -L/lib/../lib64 -L/usr/lib/x86_64-linux-gnu -L/usr/lib/llvm-3.3/lib/ -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -L/lib -L/usr/lib -z relro /tmp/format-Km0YdK.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/x86_64-linux-gnu/4.8/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crtn.o make[3]: *** [../build-tree/wrapper-test-format-security] Error 1 make[3]: Leaving directory `/«PKGBUILDDIR»/tests' make[2]: *** [check] Error 2 make[1]: *** [check] Error 2 dh_auto_test: make -j1 check returned exit code 2 make[2]: Leaving directory `/«PKGBUILDDIR»/tests' make[1]: Leaving directory `/«PKGBUILDDIR»' make: *** [build-arch] Error 2 dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2 ──────────────────────────────────────────────────────────────────────────────── Build finished at 20130719-1048 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /«BUILDDIR» Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Build Architecture: amd64 Build-Space: 336 Build-Time: 3 Distribution: unstable Fail-Stage: build Host Architecture: amd64 Install-Time: 8 Job: hardening-wrapper_2.3 Machine Architecture: amd64 Package: hardening-wrapper Package-Time: 122 Source-Version: 2.3 Space: 336 Status: attempted Version: 2.3clang1 ──────────────────────────────────────────────────────────────────────────────── Finished at 20130719-1048 Build needed 00:02:02, 336k disc space DC-Status: Failed 122.929977484s DC-Time-Estimation: 122.929977484 versus expected 34 (r/m: 2.6155875730588236 ; m: 34.0)