<86>Feb 6 07:41:32 userdel[2063046]: delete user 'rooter' <86>Feb 6 07:41:32 userdel[2063046]: removed group 'rooter' owned by 'rooter' <86>Feb 6 07:41:32 userdel[2063046]: removed shadow group 'rooter' owned by 'rooter' <86>Feb 6 07:41:32 groupadd[2063067]: group added to /etc/group: name=rooter, GID=633 <86>Feb 6 07:41:32 groupadd[2063067]: group added to /etc/gshadow: name=rooter <86>Feb 6 07:41:32 groupadd[2063067]: new group: name=rooter, GID=633 <86>Feb 6 07:41:32 useradd[2063072]: new user: name=rooter, UID=633, GID=633, home=/root, shell=/bin/bash <86>Feb 6 07:41:32 userdel[2063080]: delete user 'builder' <86>Feb 6 07:41:32 userdel[2063080]: removed group 'builder' owned by 'builder' <86>Feb 6 07:41:32 userdel[2063080]: removed shadow group 'builder' owned by 'builder' <86>Feb 6 07:41:32 groupadd[2063090]: group added to /etc/group: name=builder, GID=634 <86>Feb 6 07:41:32 groupadd[2063090]: group added to /etc/gshadow: name=builder <86>Feb 6 07:41:32 groupadd[2063090]: new group: name=builder, GID=634 <86>Feb 6 07:41:32 useradd[2063100]: new user: name=builder, UID=634, GID=634, home=/usr/src, shell=/bin/bash warning: user mike does not exist - using root warning: group mike does not exist - using root warning: user mike does not exist - using root warning: group mike does not exist - using root warning: user mike does not exist - using root warning: group mike does not exist - using root <13>Feb 6 07:41:34 rpmi: perl-Term-Cap-1.17-alt1 1445018869 installed <13>Feb 6 07:41:34 rpmi: perl-Term-ANSIColor-5.01-alt1 sisyphus+244783.100.1.2 1579747505 installed <13>Feb 6 07:41:34 rpmi: perl-Pod-Escapes-1.07-alt1 1418767892 installed <13>Feb 6 07:41:34 rpmi: perl-Filter-1.60-alt1 sisyphus+258375.300.14.2 1600904226 installed <13>Feb 6 07:41:34 rpmi: perl-Encode-3.08-alt1 sisyphus+263440.100.1.1 1607955886 installed <13>Feb 6 07:41:34 rpmi: perl-Pod-Simple-3.42-alt1 sisyphus+261979.100.1.1 1605684633 installed <13>Feb 6 07:41:34 rpmi: perl-Pod-Usage-2.01-alt1 sisyphus+260315.100.1.3 1603550551 installed <13>Feb 6 07:41:34 rpmi: perl-podlators-4.14-alt1 sisyphus+243914.100.1.1 1578493399 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/hardening-wrapper-2.6-alt1.nosrc.rpm (w1.gzdio) Installing hardening-wrapper-2.6-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.83292 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf hardening-wrapper-2.6 + /bin/mkdir -p hardening-wrapper-2.6 + cd hardening-wrapper-2.6 + echo 'Source #0 (hardening-wrapper_2.6.tar.xz):' Source #0 (hardening-wrapper_2.6.tar.xz): + /usr/bin/xz -dc /usr/src/RPM/SOURCES/hardening-wrapper_2.6.tar.xz + /bin/tar -xf - + /bin/chmod -c -Rf u+rwX,go-w . + echo 'Patch #0 (hardening-wrapper-2.6-fix_perl.patch):' Patch #0 (hardening-wrapper-2.6-fix_perl.patch): + /usr/bin/patch -p1 patching file hardening-wrapper/Makefile + sed -i.debian -e '/^[ \t]*if \[ -z \"\$.DEB_/d' hardening-wrapper/Makefile + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.83292 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd hardening-wrapper-2.6 + make -j8 -C hardening-wrapper make: Entering directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper' 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#/ '""'/; s/ #ARCH#/ '""'/;' build-tree/hardened-cc build-tree/hardened-ld perl -pi -e "s/default\{'DEB_BUILD_HARDENING_PIE'\}=1;/default{'DEB_BUILD_HARDENING_PIE'}=0;/;" 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: Leaving directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper' + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.83292 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/hardening-wrapper-buildroot + : + /bin/rm -rf -- /usr/src/tmp/hardening-wrapper-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games + cd hardening-wrapper-2.6 + install -pDm0755 hardening-wrapper/build-tree/hardening-check /usr/src/tmp/hardening-wrapper-buildroot/usr/bin/hardening-check + install -pDm0644 hardening-wrapper/build-tree/hardening-check.1 /usr/src/tmp/hardening-wrapper-buildroot/usr/share/man/man1/hardening-check.1 + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/hardening-wrapper-buildroot (auto) Verifying and fixing files in /usr/src/tmp/hardening-wrapper-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/hardening-wrapper-buildroot/ (default) Compressing files in /usr/src/tmp/hardening-wrapper-buildroot (auto) Verifying ELF objects in /usr/src/tmp/hardening-wrapper-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Hardlinking identical .pyc and .pyo files Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.97519 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd hardening-wrapper-2.6 + make -j8 -C hardening-wrapper check make: Entering directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper' make -C tests check make[1]: Entering directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper/tests' make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Leaving directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper/tests' make[1]: Entering directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper/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 (0x565571b9) cc -Wall -fstack-protector-strong hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x566271b9) cc -Wall -fPIE -pie hello.c -o ../build-tree/cc-test || true ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x5659a1b9) ../build-tree/cc-test || true ../build-tree/cc-test: ok (0x566231b9) make -f Makefile.wrapper check make[2]: Entering directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper/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_wrapper -B ../build-tree/ -o ../build-tree/wrapper-test-stock hello.c readelf -ldrsW ../build-tree/wrapper-test-stock Elf file type is DYN (Shared object file) Entry point 0x1080 There are 11 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00160 0x00160 R 0x4 INTERP 0x000194 0x00000194 0x00000194 0x00013 0x00013 R 0x1 [Requesting program interpreter: /lib/ld-linux.so.2] LOAD 0x000000 0x00000000 0x00000000 0x0041c 0x0041c R 0x1000 LOAD 0x001000 0x00001000 0x00001000 0x00318 0x00318 R E 0x1000 LOAD 0x002000 0x00002000 0x00002000 0x001e8 0x001e8 R 0x1000 LOAD 0x002ecc 0x00003ecc 0x00003ecc 0x00138 0x0013c RW 0x1000 DYNAMIC 0x002ed8 0x00003ed8 0x00003ed8 0x000f8 0x000f8 RW 0x4 NOTE 0x0001a8 0x000001a8 0x000001a8 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x002018 0x00002018 0x00002018 0x0005c 0x0005c R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10 GNU_RELRO 0x002ecc 0x00003ecc 0x00003ecc 0x00134 0x00134 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt 03 .init .plt .plt.got .text .fini 04 .rodata .eh_frame_hdr .eh_frame 05 .init_array .fini_array .data.rel.ro .dynamic .got .data .bss 06 .dynamic 07 .note.gnu.build-id .note.ABI-tag 08 .eh_frame_hdr 09 10 .init_array .fini_array .data.rel.ro .dynamic .got Dynamic section at offset 0x2ed8 contains 27 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x1000 0x0000000d (FINI) 0x1304 0x00000019 (INIT_ARRAY) 0x3ecc 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x3ed0 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1ec 0x00000005 (STRTAB) 0x2ac 0x00000006 (SYMTAB) 0x20c 0x0000000a (STRSZ) 186 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x3fd0 0x00000002 (PLTRELSZ) 32 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x3fc 0x00000011 (REL) 0x3bc 0x00000012 (RELSZ) 64 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW PIE 0x6ffffffe (VERNEED) 0x37c 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x366 0x6ffffffa (RELCOUNT) 4 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x3bc contains 8 entries: Offset Info Type Sym. Value Symbol's Name 00003ecc 00000008 R_386_RELATIVE 00003ed0 00000008 R_386_RELATIVE 00003ed4 00000008 R_386_RELATIVE 00003ff8 00000008 R_386_RELATIVE 00003fec 00000106 R_386_GLOB_DAT 00000000 _ITM_deregisterTMCloneTable 00003ff0 00000406 R_386_GLOB_DAT 00000000 __cxa_finalize@GLIBC_2.1.3 00003ff4 00000506 R_386_GLOB_DAT 00000000 __gmon_start__ 00003ffc 00000806 R_386_GLOB_DAT 00000000 _ITM_registerTMCloneTable Relocation section '.rel.plt' at offset 0x3fc contains 4 entries: Offset Info Type Sym. Value Symbol's Name 00003fdc 00000207 R_386_JUMP_SLOT 00000000 printf@GLIBC_2.0 00003fe0 00000307 R_386_JUMP_SLOT 00000000 __stack_chk_fail@GLIBC_2.4 00003fe4 00000607 R_386_JUMP_SLOT 00000000 __libc_start_main@GLIBC_2.0 00003fe8 00000707 R_386_JUMP_SLOT 00000000 snprintf@GLIBC_2.0 Symbol table '.dynsym' contains 10 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 2: 00000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.0 (2) 3: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 (3) 4: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 (4) 5: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 6: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 (2) 7: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.0 (2) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 9: 00002004 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used Symbol table '.symtab' contains 86 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000194 0 SECTION LOCAL DEFAULT 1 2: 000001a8 0 SECTION LOCAL DEFAULT 2 3: 000001cc 0 SECTION LOCAL DEFAULT 3 4: 000001ec 0 SECTION LOCAL DEFAULT 4 5: 0000020c 0 SECTION LOCAL DEFAULT 5 6: 000002ac 0 SECTION LOCAL DEFAULT 6 7: 00000366 0 SECTION LOCAL DEFAULT 7 8: 0000037c 0 SECTION LOCAL DEFAULT 8 9: 000003bc 0 SECTION LOCAL DEFAULT 9 10: 000003fc 0 SECTION LOCAL DEFAULT 10 11: 00001000 0 SECTION LOCAL DEFAULT 11 12: 00001020 0 SECTION LOCAL DEFAULT 12 13: 00001070 0 SECTION LOCAL DEFAULT 13 14: 00001080 0 SECTION LOCAL DEFAULT 14 15: 00001304 0 SECTION LOCAL DEFAULT 15 16: 00002000 0 SECTION LOCAL DEFAULT 16 17: 00002018 0 SECTION LOCAL DEFAULT 17 18: 00002074 0 SECTION LOCAL DEFAULT 18 19: 00003ecc 0 SECTION LOCAL DEFAULT 19 20: 00003ed0 0 SECTION LOCAL DEFAULT 20 21: 00003ed4 0 SECTION LOCAL DEFAULT 21 22: 00003ed8 0 SECTION LOCAL DEFAULT 22 23: 00003fd0 0 SECTION LOCAL DEFAULT 23 24: 00004000 0 SECTION LOCAL DEFAULT 24 25: 00004004 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00004008 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 FILE LOCAL DEFAULT ABS abi-note.c 36: 000001cc 32 OBJECT LOCAL DEFAULT 3 __abi_tag 37: 00000000 0 FILE LOCAL DEFAULT ABS init.c 38: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 39: 000010d0 0 FUNC LOCAL DEFAULT 14 deregister_tm_clones 40: 00001110 0 FUNC LOCAL DEFAULT 14 register_tm_clones 41: 00001160 0 FUNC LOCAL DEFAULT 14 __do_global_dtors_aux 42: 00004004 1 OBJECT LOCAL DEFAULT 25 completed.0 43: 00003ed0 0 OBJECT LOCAL DEFAULT 20 __do_global_dtors_aux_fini_array_entry 44: 000011b0 0 FUNC LOCAL DEFAULT 14 frame_dummy 45: 00003ecc 0 OBJECT LOCAL DEFAULT 19 __frame_dummy_init_array_entry 46: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 47: 00000000 0 FILE LOCAL DEFAULT ABS elf-init.c 48: 00000000 0 FILE LOCAL DEFAULT ABS stack_chk_fail_local.c 49: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 50: 000021e4 0 OBJECT LOCAL DEFAULT 18 __FRAME_END__ 51: 00000000 0 FILE LOCAL DEFAULT ABS 52: 00003ed0 0 NOTYPE LOCAL DEFAULT 19 __init_array_end 53: 00003ed8 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC 54: 00003ecc 0 NOTYPE LOCAL DEFAULT 19 __init_array_start 55: 00002018 0 NOTYPE LOCAL DEFAULT 17 __GNU_EH_FRAME_HDR 56: 00003fd0 0 OBJECT LOCAL DEFAULT 23 _GLOBAL_OFFSET_TABLE_ 57: 00001000 0 FUNC LOCAL DEFAULT 11 _init 58: 000012e0 1 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 59: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 60: 000010c0 4 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.bx 61: 00004000 0 NOTYPE WEAK DEFAULT 24 data_start 62: 00000000 0 FUNC GLOBAL DEFAULT UND printf@GLIBC_2.0 63: 000012e1 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.bp 64: 00004004 0 NOTYPE GLOBAL DEFAULT 24 _edata 65: 00001304 0 FUNC GLOBAL HIDDEN 15 _fini 66: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 67: 000011b5 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.dx 68: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 69: 00004000 0 NOTYPE GLOBAL DEFAULT 24 __data_start 70: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 71: 00003ed4 0 OBJECT GLOBAL HIDDEN 21 __dso_handle 72: 000011b9 128 FUNC GLOBAL DEFAULT 14 announcement 73: 00002004 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 74: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 75: 00001280 93 FUNC GLOBAL DEFAULT 14 __libc_csu_init 76: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.0 77: 00004008 0 NOTYPE GLOBAL DEFAULT 25 _end 78: 00001080 54 FUNC GLOBAL DEFAULT 14 _start 79: 00002000 4 OBJECT GLOBAL DEFAULT 16 _fp_hw 80: 00004004 0 NOTYPE GLOBAL DEFAULT 25 __bss_start 81: 00001239 62 FUNC GLOBAL DEFAULT 14 main 82: 00001277 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.ax 83: 000012f0 20 FUNC GLOBAL HIDDEN 14 __stack_chk_fail_local 84: 00004004 0 OBJECT GLOBAL HIDDEN 24 __TMC_END__ 85: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable ../build-tree/wrapper-test-stock ../build-tree/wrapper-test-stock: ok (0x5663f1b9) # Compiler options enabled. (linker is not wrapper) ../build-tree/hardened-cc -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-compiled hello.c /usr/bin/gcc_wrapper -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -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 0x10b0 There are 11 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00160 0x00160 R 0x4 INTERP 0x000194 0x00000194 0x00000194 0x00013 0x00013 R 0x1 [Requesting program interpreter: /lib/ld-linux.so.2] LOAD 0x000000 0x00000000 0x00000000 0x00444 0x00444 R 0x1000 LOAD 0x001000 0x00001000 0x00001000 0x00308 0x00308 R E 0x1000 LOAD 0x002000 0x00002000 0x00002000 0x001fc 0x001fc R 0x1000 LOAD 0x002ecc 0x00003ecc 0x00003ecc 0x00138 0x0013c RW 0x1000 DYNAMIC 0x002ed8 0x00003ed8 0x00003ed8 0x000f8 0x000f8 RW 0x4 NOTE 0x0001a8 0x000001a8 0x000001a8 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x002018 0x00002018 0x00002018 0x00054 0x00054 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10 GNU_RELRO 0x002ecc 0x00003ecc 0x00003ecc 0x00134 0x00134 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt 03 .init .plt .plt.got .text .fini 04 .rodata .eh_frame_hdr .eh_frame 05 .init_array .fini_array .data.rel.ro .dynamic .got .data .bss 06 .dynamic 07 .note.gnu.build-id .note.ABI-tag 08 .eh_frame_hdr 09 10 .init_array .fini_array .data.rel.ro .dynamic .got Dynamic section at offset 0x2ed8 contains 27 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x1000 0x0000000d (FINI) 0x12f4 0x00000019 (INIT_ARRAY) 0x3ecc 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x3ed0 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1ec 0x00000005 (STRTAB) 0x2ac 0x00000006 (SYMTAB) 0x20c 0x0000000a (STRSZ) 211 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x3fd0 0x00000002 (PLTRELSZ) 32 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x424 0x00000011 (REL) 0x3e4 0x00000012 (RELSZ) 64 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW PIE 0x6ffffffe (VERNEED) 0x394 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x380 0x6ffffffa (RELCOUNT) 4 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x3e4 contains 8 entries: Offset Info Type Sym. Value Symbol's Name 00003ecc 00000008 R_386_RELATIVE 00003ed0 00000008 R_386_RELATIVE 00003ed4 00000008 R_386_RELATIVE 00003ff8 00000008 R_386_RELATIVE 00003fec 00000106 R_386_GLOB_DAT 00000000 _ITM_deregisterTMCloneTable 00003ff0 00000306 R_386_GLOB_DAT 00000000 __cxa_finalize@GLIBC_2.1.3 00003ff4 00000406 R_386_GLOB_DAT 00000000 __gmon_start__ 00003ffc 00000806 R_386_GLOB_DAT 00000000 _ITM_registerTMCloneTable Relocation section '.rel.plt' at offset 0x424 contains 4 entries: Offset Info Type Sym. Value Symbol's Name 00003fdc 00000207 R_386_JUMP_SLOT 00000000 __stack_chk_fail@GLIBC_2.4 00003fe0 00000507 R_386_JUMP_SLOT 00000000 __libc_start_main@GLIBC_2.0 00003fe4 00000607 R_386_JUMP_SLOT 00000000 snprintf@GLIBC_2.0 00003fe8 00000707 R_386_JUMP_SLOT 00000000 __printf_chk@GLIBC_2.3.4 Symbol table '.dynsym' contains 10 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 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.0 (4) 7: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 (5) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 9: 00002004 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used Symbol table '.symtab' contains 85 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000194 0 SECTION LOCAL DEFAULT 1 2: 000001a8 0 SECTION LOCAL DEFAULT 2 3: 000001cc 0 SECTION LOCAL DEFAULT 3 4: 000001ec 0 SECTION LOCAL DEFAULT 4 5: 0000020c 0 SECTION LOCAL DEFAULT 5 6: 000002ac 0 SECTION LOCAL DEFAULT 6 7: 00000380 0 SECTION LOCAL DEFAULT 7 8: 00000394 0 SECTION LOCAL DEFAULT 8 9: 000003e4 0 SECTION LOCAL DEFAULT 9 10: 00000424 0 SECTION LOCAL DEFAULT 10 11: 00001000 0 SECTION LOCAL DEFAULT 11 12: 00001020 0 SECTION LOCAL DEFAULT 12 13: 00001070 0 SECTION LOCAL DEFAULT 13 14: 00001080 0 SECTION LOCAL DEFAULT 14 15: 000012f4 0 SECTION LOCAL DEFAULT 15 16: 00002000 0 SECTION LOCAL DEFAULT 16 17: 00002018 0 SECTION LOCAL DEFAULT 17 18: 0000206c 0 SECTION LOCAL DEFAULT 18 19: 00003ecc 0 SECTION LOCAL DEFAULT 19 20: 00003ed0 0 SECTION LOCAL DEFAULT 20 21: 00003ed4 0 SECTION LOCAL DEFAULT 21 22: 00003ed8 0 SECTION LOCAL DEFAULT 22 23: 00003fd0 0 SECTION LOCAL DEFAULT 23 24: 00004000 0 SECTION LOCAL DEFAULT 24 25: 00004004 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00004008 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 FILE LOCAL DEFAULT ABS abi-note.c 36: 000001cc 32 OBJECT LOCAL DEFAULT 3 __abi_tag 37: 00000000 0 FILE LOCAL DEFAULT ABS init.c 38: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 39: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 40: 00001100 0 FUNC LOCAL DEFAULT 14 deregister_tm_clones 41: 00001140 0 FUNC LOCAL DEFAULT 14 register_tm_clones 42: 00001190 0 FUNC LOCAL DEFAULT 14 __do_global_dtors_aux 43: 00004004 1 OBJECT LOCAL DEFAULT 25 completed.0 44: 00003ed0 0 OBJECT LOCAL DEFAULT 20 __do_global_dtors_aux_fini_array_entry 45: 000011e0 0 FUNC LOCAL DEFAULT 14 frame_dummy 46: 00003ecc 0 OBJECT LOCAL DEFAULT 19 __frame_dummy_init_array_entry 47: 00000000 0 FILE LOCAL DEFAULT ABS elf-init.c 48: 00000000 0 FILE LOCAL DEFAULT ABS stack_chk_fail_local.c 49: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 50: 000021f8 0 OBJECT LOCAL DEFAULT 18 __FRAME_END__ 51: 00000000 0 FILE LOCAL DEFAULT ABS 52: 00003ed0 0 NOTYPE LOCAL DEFAULT 19 __init_array_end 53: 00003ed8 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC 54: 00003ecc 0 NOTYPE LOCAL DEFAULT 19 __init_array_start 55: 00002018 0 NOTYPE LOCAL DEFAULT 17 __GNU_EH_FRAME_HDR 56: 00003fd0 0 OBJECT LOCAL DEFAULT 23 _GLOBAL_OFFSET_TABLE_ 57: 00001000 0 FUNC LOCAL DEFAULT 11 _init 58: 000012d0 1 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 59: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 60: 000010f0 4 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.bx 61: 00004000 0 NOTYPE WEAK DEFAULT 24 data_start 62: 000012d1 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.bp 63: 00004004 0 NOTYPE GLOBAL DEFAULT 24 _edata 64: 000012f4 0 FUNC GLOBAL HIDDEN 15 _fini 65: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 66: 000011e5 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.dx 67: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 68: 00004000 0 NOTYPE GLOBAL DEFAULT 24 __data_start 69: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 70: 00003ed4 0 OBJECT GLOBAL HIDDEN 21 __dso_handle 71: 000011f0 118 FUNC GLOBAL DEFAULT 14 announcement 72: 00002004 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 73: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 74: 00001270 93 FUNC GLOBAL DEFAULT 14 __libc_csu_init 75: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.0 76: 00004008 0 NOTYPE GLOBAL DEFAULT 25 _end 77: 000010b0 54 FUNC GLOBAL DEFAULT 14 _start 78: 00002000 4 OBJECT GLOBAL DEFAULT 16 _fp_hw 79: 00004004 0 NOTYPE GLOBAL DEFAULT 25 __bss_start 80: 00001080 46 FUNC GLOBAL DEFAULT 14 main 81: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 82: 000012e0 20 FUNC GLOBAL HIDDEN 14 __stack_chk_fail_local 83: 00004004 0 OBJECT GLOBAL HIDDEN 24 __TMC_END__ 84: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x565b41f0) ../build-tree/wrapper-test-compiled ../build-tree/wrapper-test-compiled: ok (0x566251f0) # 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/ -O2 -o ../build-tree/wrapper-test-linked hello.c /usr/bin/gcc_wrapper -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security -B ../build-tree/ -O2 -o ../build-tree/wrapper-test-linked hello.c /usr/bin/ld -z relro -plugin /usr/libexec/gcc/i586-alt-linux/10/liblto_plugin.so -plugin-opt=/usr/libexec/gcc/i586-alt-linux/10/lto-wrapper -plugin-opt=-fresolution=/usr/src/tmp/ccMRDqYW.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --no-add-needed --eh-frame-hdr --hash-style=gnu --as-needed -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 -pie -z now -o ../build-tree/wrapper-test-linked /usr/lib/gcc/i586-alt-linux/10/../../../Scrt1.o /usr/lib/gcc/i586-alt-linux/10/../../../crti.o /usr/lib/gcc/i586-alt-linux/10/crtbeginS.o -L../build-tree -L/usr/lib/gcc/i586-alt-linux/10 -L/usr/lib/gcc/i586-alt-linux/10/../../.. /usr/src/tmp/ccVfdt5W.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/i586-alt-linux/10/crtendS.o /usr/lib/gcc/i586-alt-linux/10/../../../crtn.o readelf -ldrsW ../build-tree/wrapper-test-linked Elf file type is DYN (Shared object file) Entry point 0x10b0 There are 11 program headers, starting at offset 52 Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000034 0x00000034 0x00000034 0x00160 0x00160 R 0x4 INTERP 0x000194 0x00000194 0x00000194 0x00013 0x00013 R 0x1 [Requesting program interpreter: /lib/ld-linux.so.2] LOAD 0x000000 0x00000000 0x00000000 0x00444 0x00444 R 0x1000 LOAD 0x001000 0x00001000 0x00001000 0x00308 0x00308 R E 0x1000 LOAD 0x002000 0x00002000 0x00002000 0x001fc 0x001fc R 0x1000 LOAD 0x002ecc 0x00003ecc 0x00003ecc 0x00138 0x0013c RW 0x1000 DYNAMIC 0x002ed8 0x00003ed8 0x00003ed8 0x000f8 0x000f8 RW 0x4 NOTE 0x0001a8 0x000001a8 0x000001a8 0x00044 0x00044 R 0x4 GNU_EH_FRAME 0x002018 0x00002018 0x00002018 0x00054 0x00054 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10 GNU_RELRO 0x002ecc 0x00003ecc 0x00003ecc 0x00134 0x00134 R 0x1 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.gnu.build-id .note.ABI-tag .gnu.hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt 03 .init .plt .plt.got .text .fini 04 .rodata .eh_frame_hdr .eh_frame 05 .init_array .fini_array .data.rel.ro .dynamic .got .data .bss 06 .dynamic 07 .note.gnu.build-id .note.ABI-tag 08 .eh_frame_hdr 09 10 .init_array .fini_array .data.rel.ro .dynamic .got Dynamic section at offset 0x2ed8 contains 27 entries: Tag Type Name/Value 0x00000001 (NEEDED) Shared library: [libc.so.6] 0x0000000c (INIT) 0x1000 0x0000000d (FINI) 0x12f4 0x00000019 (INIT_ARRAY) 0x3ecc 0x0000001b (INIT_ARRAYSZ) 4 (bytes) 0x0000001a (FINI_ARRAY) 0x3ed0 0x0000001c (FINI_ARRAYSZ) 4 (bytes) 0x6ffffef5 (GNU_HASH) 0x1ec 0x00000005 (STRTAB) 0x2ac 0x00000006 (SYMTAB) 0x20c 0x0000000a (STRSZ) 211 (bytes) 0x0000000b (SYMENT) 16 (bytes) 0x00000015 (DEBUG) 0x0 0x00000003 (PLTGOT) 0x3fd0 0x00000002 (PLTRELSZ) 32 (bytes) 0x00000014 (PLTREL) REL 0x00000017 (JMPREL) 0x424 0x00000011 (REL) 0x3e4 0x00000012 (RELSZ) 64 (bytes) 0x00000013 (RELENT) 8 (bytes) 0x00000018 (BIND_NOW) 0x6ffffffb (FLAGS_1) Flags: NOW PIE 0x6ffffffe (VERNEED) 0x394 0x6fffffff (VERNEEDNUM) 1 0x6ffffff0 (VERSYM) 0x380 0x6ffffffa (RELCOUNT) 4 0x00000000 (NULL) 0x0 Relocation section '.rel.dyn' at offset 0x3e4 contains 8 entries: Offset Info Type Sym. Value Symbol's Name 00003ecc 00000008 R_386_RELATIVE 00003ed0 00000008 R_386_RELATIVE 00003ed4 00000008 R_386_RELATIVE 00003ff8 00000008 R_386_RELATIVE 00003fec 00000106 R_386_GLOB_DAT 00000000 _ITM_deregisterTMCloneTable 00003ff0 00000306 R_386_GLOB_DAT 00000000 __cxa_finalize@GLIBC_2.1.3 00003ff4 00000406 R_386_GLOB_DAT 00000000 __gmon_start__ 00003ffc 00000806 R_386_GLOB_DAT 00000000 _ITM_registerTMCloneTable Relocation section '.rel.plt' at offset 0x424 contains 4 entries: Offset Info Type Sym. Value Symbol's Name 00003fdc 00000207 R_386_JUMP_SLOT 00000000 __stack_chk_fail@GLIBC_2.4 00003fe0 00000507 R_386_JUMP_SLOT 00000000 __libc_start_main@GLIBC_2.0 00003fe4 00000607 R_386_JUMP_SLOT 00000000 snprintf@GLIBC_2.0 00003fe8 00000707 R_386_JUMP_SLOT 00000000 __printf_chk@GLIBC_2.3.4 Symbol table '.dynsym' contains 10 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 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.0 (4) 7: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 (5) 8: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable 9: 00002004 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used Symbol table '.symtab' contains 85 entries: Num: Value Size Type Bind Vis Ndx Name 0: 00000000 0 NOTYPE LOCAL DEFAULT UND 1: 00000194 0 SECTION LOCAL DEFAULT 1 2: 000001a8 0 SECTION LOCAL DEFAULT 2 3: 000001cc 0 SECTION LOCAL DEFAULT 3 4: 000001ec 0 SECTION LOCAL DEFAULT 4 5: 0000020c 0 SECTION LOCAL DEFAULT 5 6: 000002ac 0 SECTION LOCAL DEFAULT 6 7: 00000380 0 SECTION LOCAL DEFAULT 7 8: 00000394 0 SECTION LOCAL DEFAULT 8 9: 000003e4 0 SECTION LOCAL DEFAULT 9 10: 00000424 0 SECTION LOCAL DEFAULT 10 11: 00001000 0 SECTION LOCAL DEFAULT 11 12: 00001020 0 SECTION LOCAL DEFAULT 12 13: 00001070 0 SECTION LOCAL DEFAULT 13 14: 00001080 0 SECTION LOCAL DEFAULT 14 15: 000012f4 0 SECTION LOCAL DEFAULT 15 16: 00002000 0 SECTION LOCAL DEFAULT 16 17: 00002018 0 SECTION LOCAL DEFAULT 17 18: 0000206c 0 SECTION LOCAL DEFAULT 18 19: 00003ecc 0 SECTION LOCAL DEFAULT 19 20: 00003ed0 0 SECTION LOCAL DEFAULT 20 21: 00003ed4 0 SECTION LOCAL DEFAULT 21 22: 00003ed8 0 SECTION LOCAL DEFAULT 22 23: 00003fd0 0 SECTION LOCAL DEFAULT 23 24: 00004000 0 SECTION LOCAL DEFAULT 24 25: 00004004 0 SECTION LOCAL DEFAULT 25 26: 00000000 0 SECTION LOCAL DEFAULT 26 27: 00000000 0 SECTION LOCAL DEFAULT 27 28: 00004008 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 FILE LOCAL DEFAULT ABS abi-note.c 36: 000001cc 32 OBJECT LOCAL DEFAULT 3 __abi_tag 37: 00000000 0 FILE LOCAL DEFAULT ABS init.c 38: 00000000 0 FILE LOCAL DEFAULT ABS hello.c 39: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 40: 00001100 0 FUNC LOCAL DEFAULT 14 deregister_tm_clones 41: 00001140 0 FUNC LOCAL DEFAULT 14 register_tm_clones 42: 00001190 0 FUNC LOCAL DEFAULT 14 __do_global_dtors_aux 43: 00004004 1 OBJECT LOCAL DEFAULT 25 completed.0 44: 00003ed0 0 OBJECT LOCAL DEFAULT 20 __do_global_dtors_aux_fini_array_entry 45: 000011e0 0 FUNC LOCAL DEFAULT 14 frame_dummy 46: 00003ecc 0 OBJECT LOCAL DEFAULT 19 __frame_dummy_init_array_entry 47: 00000000 0 FILE LOCAL DEFAULT ABS elf-init.c 48: 00000000 0 FILE LOCAL DEFAULT ABS stack_chk_fail_local.c 49: 00000000 0 FILE LOCAL DEFAULT ABS crtstuff.c 50: 000021f8 0 OBJECT LOCAL DEFAULT 18 __FRAME_END__ 51: 00000000 0 FILE LOCAL DEFAULT ABS 52: 00003ed0 0 NOTYPE LOCAL DEFAULT 19 __init_array_end 53: 00003ed8 0 OBJECT LOCAL DEFAULT 22 _DYNAMIC 54: 00003ecc 0 NOTYPE LOCAL DEFAULT 19 __init_array_start 55: 00002018 0 NOTYPE LOCAL DEFAULT 17 __GNU_EH_FRAME_HDR 56: 00003fd0 0 OBJECT LOCAL DEFAULT 23 _GLOBAL_OFFSET_TABLE_ 57: 00001000 0 FUNC LOCAL DEFAULT 11 _init 58: 000012d0 1 FUNC GLOBAL DEFAULT 14 __libc_csu_fini 59: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_deregisterTMCloneTable 60: 000010f0 4 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.bx 61: 00004000 0 NOTYPE WEAK DEFAULT 24 data_start 62: 000012d1 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.bp 63: 00004004 0 NOTYPE GLOBAL DEFAULT 24 _edata 64: 000012f4 0 FUNC GLOBAL HIDDEN 15 _fini 65: 00000000 0 FUNC GLOBAL DEFAULT UND __stack_chk_fail@GLIBC_2.4 66: 000011e5 0 FUNC GLOBAL HIDDEN 14 __x86.get_pc_thunk.dx 67: 00000000 0 FUNC WEAK DEFAULT UND __cxa_finalize@GLIBC_2.1.3 68: 00004000 0 NOTYPE GLOBAL DEFAULT 24 __data_start 69: 00000000 0 NOTYPE WEAK DEFAULT UND __gmon_start__ 70: 00003ed4 0 OBJECT GLOBAL HIDDEN 21 __dso_handle 71: 000011f0 118 FUNC GLOBAL DEFAULT 14 announcement 72: 00002004 4 OBJECT GLOBAL DEFAULT 16 _IO_stdin_used 73: 00000000 0 FUNC GLOBAL DEFAULT UND __libc_start_main@GLIBC_2.0 74: 00001270 93 FUNC GLOBAL DEFAULT 14 __libc_csu_init 75: 00000000 0 FUNC GLOBAL DEFAULT UND snprintf@GLIBC_2.0 76: 00004008 0 NOTYPE GLOBAL DEFAULT 25 _end 77: 000010b0 54 FUNC GLOBAL DEFAULT 14 _start 78: 00002000 4 OBJECT GLOBAL DEFAULT 16 _fp_hw 79: 00004004 0 NOTYPE GLOBAL DEFAULT 25 __bss_start 80: 00001080 46 FUNC GLOBAL DEFAULT 14 main 81: 00000000 0 FUNC GLOBAL DEFAULT UND __printf_chk@GLIBC_2.3.4 82: 000012e0 20 FUNC GLOBAL HIDDEN 14 __stack_chk_fail_local 83: 00004004 0 OBJECT GLOBAL HIDDEN 24 __TMC_END__ 84: 00000000 0 NOTYPE WEAK DEFAULT UND _ITM_registerTMCloneTable # Run twice to show off PIE, if available in kernel ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x565ae1f0) ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: ok (0x566121f0) # Check state of hardening features via check script perl ../build-tree/hardening-check -p ../build-tree/wrapper-test-linked ../build-tree/wrapper-test-linked: Position Independent Executable: yes Stack protected: yes Fortify Source functions: yes (some protected functions found) Read-only relocations: yes Immediate binding: yes # Manually check state of hardening features # Skipped PIE test # Test Stack Protector nm ../build-tree/wrapper-test-linked | egrep '__stack_chk_fail($|@@GLIBC)' make[2]: *** [Makefile.common:89: ../build-tree/wrapper-test-linked] Error 1 make[2]: Leaving directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper/tests' make[1]: *** [Makefile:6: check] Error 2 make[1]: Leaving directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper/tests' make: *** [Makefile:41: check] Error 2 make: Leaving directory '/usr/src/RPM/BUILD/hardening-wrapper-2.6/hardening-wrapper' error: Bad exit status from /usr/src/tmp/rpm-tmp.97519 (%check) RPM build errors: Bad exit status from /usr/src/tmp/rpm-tmp.97519 (%check) Command exited with non-zero status 1 1.54user 0.32system 0:01.89elapsed 99%CPU (0avgtext+0avgdata 19524maxresident)k 0inputs+0outputs (0major+99794minor)pagefaults 0swaps hsh-rebuild: rebuild of `hardening-wrapper-2.6-alt1.src.rpm' failed. Command exited with non-zero status 1 4.68user 2.48system 0:07.04elapsed 101%CPU (0avgtext+0avgdata 106964maxresident)k 0inputs+0outputs (0major+324681minor)pagefaults 0swaps