Using built-in specs. COLLECT_GCC=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.5.3/powerpc-unknown-linux-gnu-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.5.3/lto-wrapper Target: powerpc-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/powerpc-unknown-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/powerpc-unknown-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include/g++-v4 --host=powerpc-unknown-linux-gnu --build=powerpc-unknown-linux-gnu --enable-altivec --disable-fixed-point --with-ppl --with-cloog --disable-ppl-version-check --with-cloog-include=/usr/include/cloog-ppl --enable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/powerpc-unknown-linux-gnu/4.5.3/python --enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1 p1.0, pie-0.4.5' Thread model: posix gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) COLLECT_GCC_OPTIONS='-Os' '-mcpu=G4' '-mtune=G4' '-maltivec' '-mabi=altivec' '-Wall' '-std=gnu99' '-v' /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.5.3/cc1 -quiet -v -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=linux -Asystem=unix -Asystem=posix test.c -D_FORTIFY_SOURCE=2 -msecure-plt -quiet -dumpbase test.c -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -auxbase test -Os -Wall -std=gnu99 -version -o /tmp/ccv1Fc0v.s GNU C (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) version 4.5.3 (powerpc-unknown-linux-gnu) compiled by GNU C version 4.5.3, GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9 GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64068 ignoring nonexistent directory "/usr/local/include" ignoring nonexistent directory "/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/include-fixed /usr/include End of search list. GNU C (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) version 4.5.3 (powerpc-unknown-linux-gnu) compiled by GNU C version 4.5.3, GMP version 5.0.2, MPFR version 3.1.0, MPC version 0.9 GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64068 Compiler executable checksum: d2d09f97801e846dd7fbe31d8015d21a test.c:1:1: warning: return type defaults to ‘int’ COLLECT_GCC_OPTIONS='-Os' '-mcpu=G4' '-mtune=G4' '-maltivec' '-mabi=altivec' '-Wall' '-std=gnu99' '-v' /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/bin/as -mppc -maltivec -maltivec -many -V -Qy -o /tmp/ccqVJm1W.o /tmp/ccv1Fc0v.s GNU assembler version 2.22 (powerpc-unknown-linux-gnu) using BFD version (GNU Binutils) 2.22 COMPILER_PATH=/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.5.3/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/4.5.3/:/usr/libexec/gcc/powerpc-unknown-linux-gnu/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/:/usr/lib/gcc/powerpc-unknown-linux-gnu/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/bin/ LIBRARY_PATH=/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/lib/:/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-Os' '-mcpu=G4' '-mtune=G4' '-maltivec' '-mabi=altivec' '-Wall' '-std=gnu99' '-v' /usr/libexec/gcc/powerpc-unknown-linux-gnu/4.5.3/collect2 --eh-frame-hdr -V -Qy -m elf32ppclinux -dynamic-linker /lib/ld.so.1 /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crt1.o /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crti.o /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/crtbegin.o -L/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3 -L/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/lib -L/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../.. -O1 --as-needed /tmp/ccqVJm1W.o --verbose -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/crtend.o /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crtn.o GNU ld (GNU Binutils) 2.22 Supported emulations: elf32ppclinux elf32ppc elf32ppcsim elf64ppc GNU ld (GNU Binutils) 2.22 Supported emulations: elf32ppclinux elf32ppc elf32ppcsim elf64ppc using internal linker script: ================================================== /* Script for -z combreloc: combine and sort reloc sections */ OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc") OUTPUT_ARCH(powerpc:common) ENTRY(_start) SEARCH_DIR("/usr/powerpc-unknown-linux-gnu/lib"); SEARCH_DIR("/usr/lib/binutils/powerpc-unknown-linux-gnu/2.22"); SEARCH_DIR("/usr/local/lib"); SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); SECTIONS { /* Read-only sections, merged into text segment: */ PROVIDE (__executable_start = SEGMENT_START("text-segment", 0x10000000)); . = SEGMENT_START("text-segment", 0x10000000) + SIZEOF_HEADERS; .interp : { *(.interp) } .note.gnu.build-id : { *(.note.gnu.build-id) } .hash : { *(.hash) } .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version : { *(.gnu.version) } .gnu.version_d : { *(.gnu.version_d) } .gnu.version_r : { *(.gnu.version_r) } .rela.dyn : { *(.rela.init) *(.rela.text .rela.text.* .rela.gnu.linkonce.t.*) *(.rela.fini) *(.rela.rodata .rela.rodata.* .rela.gnu.linkonce.r.*) *(.rela.data .rela.data.* .rela.gnu.linkonce.d.*) *(.rela.tdata .rela.tdata.* .rela.gnu.linkonce.td.*) *(.rela.tbss .rela.tbss.* .rela.gnu.linkonce.tb.*) *(.rela.ctors) *(.rela.dtors) *(.rela.got) *(.rela.got1) *(.rela.got2) *(.rela.sdata .rela.sdata.* .rela.gnu.linkonce.s.*) *(.rela.sbss .rela.sbss.* .rela.gnu.linkonce.sb.*) *(.rela.sdata2 .rela.sdata2.* .rela.gnu.linkonce.s2.*) *(.rela.sbss2 .rela.sbss2.* .rela.gnu.linkonce.sb2.*) *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) PROVIDE_HIDDEN (__rel_iplt_start = .); PROVIDE_HIDDEN (__rel_iplt_end = .); PROVIDE_HIDDEN (__rela_iplt_start = .); *(.rela.iplt) PROVIDE_HIDDEN (__rela_iplt_end = .); } .rela.plt : { *(.rela.plt) } .init : { KEEP (*(.init)) } =0 .text : { *(.text.unlikely .text.*_unlikely) *(.text.exit .text.exit.*) *(.text.startup .text.startup.*) *(.text.hot .text.hot.*) *(.text .stub .text.* .gnu.linkonce.t.*) /* .gnu.warning sections are handled specially by elf32.em. */ *(.gnu.warning) *(.glink) } =0 .fini : { KEEP (*(.fini)) } =0 PROVIDE (__etext = .); PROVIDE (_etext = .); PROVIDE (etext = .); .rodata : { *(.rodata .rodata.* .gnu.linkonce.r.*) } .rodata1 : { *(.rodata1) } .sdata2 : { PROVIDE (_SDA2_BASE_ = 32768); *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } .sbss2 : { *(.sbss2 .sbss2.* .gnu.linkonce.sb2.*) } .eh_frame_hdr : { *(.eh_frame_hdr) } .eh_frame : ONLY_IF_RO { KEEP (*(.eh_frame)) } .gcc_except_table : ONLY_IF_RO { *(.gcc_except_table .gcc_except_table.*) } /* These sections are generated by the Sun/Oracle C++ compiler. */ .exception_ranges : ONLY_IF_RO { *(.exception_ranges .exception_ranges*) } /* Adjust the address for the data segment. We want to adjust up to the same address within the page on the next page up. */ . = ALIGN (CONSTANT (MAXPAGESIZE)) - ((CONSTANT (MAXPAGESIZE) - .) & (CONSTANT (MAXPAGESIZE) - 1)); . = DATA_SEGMENT_ALIGN (CONSTANT (MAXPAGESIZE), CONSTANT (COMMONPAGESIZE)); /* Exception handling */ .eh_frame : ONLY_IF_RW { KEEP (*(.eh_frame)) } .gcc_except_table : ONLY_IF_RW { *(.gcc_except_table .gcc_except_table.*) } .exception_ranges : ONLY_IF_RW { *(.exception_ranges .exception_ranges*) } /* Thread Local Storage sections */ .tdata : { *(.tdata .tdata.* .gnu.linkonce.td.*) } .tbss : { *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) } .preinit_array : { PROVIDE_HIDDEN (__preinit_array_start = .); KEEP (*(.preinit_array)) PROVIDE_HIDDEN (__preinit_array_end = .); } .init_array : { PROVIDE_HIDDEN (__init_array_start = .); KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*))) KEEP (*(.init_array)) KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .ctors)) PROVIDE_HIDDEN (__init_array_end = .); } .fini_array : { PROVIDE_HIDDEN (__fini_array_start = .); KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*))) KEEP (*(.fini_array)) KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o ) .dtors)) PROVIDE_HIDDEN (__fini_array_end = .); } .ctors : { /* gcc uses crtbegin.o to find the start of the constructors, so we make sure it is first. Because this is a wildcard, it doesn't matter if the user does not actually link against crtbegin.o; the linker won't look for a file to match a wildcard. The wildcard also means that it doesn't matter which directory crtbegin.o is in. */ KEEP (*crtbegin.o(.ctors)) KEEP (*crtbegin?.o(.ctors)) /* We don't want to include the .ctor section from the crtend.o file until after the sorted ctors. The .ctor section from the crtend file contains the end of ctors marker and it must be last */ KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .ctors)) KEEP (*(SORT(.ctors.*))) KEEP (*(.ctors)) } .dtors : { KEEP (*crtbegin.o(.dtors)) KEEP (*crtbegin?.o(.dtors)) KEEP (*(EXCLUDE_FILE (*crtend.o *crtend?.o ) .dtors)) KEEP (*(SORT(.dtors.*))) KEEP (*(.dtors)) } .jcr : { KEEP (*(.jcr)) } .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) } .got1 : { *(.got1) } .got2 : { *(.got2) } .dynamic : { *(.dynamic) } .got : SPECIAL { *(.got) } . = DATA_SEGMENT_RELRO_END (0, .); .plt : SPECIAL { *(.plt) } .data : { *(.data .data.* .gnu.linkonce.d.*) SORT(CONSTRUCTORS) } .data1 : { *(.data1) } .got : SPECIAL { *(.got) } /* We want the small data sections together, so single-instruction offsets can access them all, and initialized data all before uninitialized, so we can shorten the on-disk segment size. */ .sdata : { PROVIDE (_SDA_BASE_ = 32768); *(.sdata .sdata.* .gnu.linkonce.s.*) } _edata = .; PROVIDE (edata = .); __bss_start = .; .sbss : { PROVIDE (__sbss_start = .); PROVIDE (___sbss_start = .); *(.dynsbss) *(.sbss .sbss.* .gnu.linkonce.sb.*) *(.scommon) PROVIDE (__sbss_end = .); PROVIDE (___sbss_end = .); } .plt : SPECIAL { *(.plt) } .iplt : { *(.iplt) } .bss : { *(.dynbss) *(.bss .bss.* .gnu.linkonce.b.*) *(COMMON) /* Align here to ensure that the .bss section occupies space up to _end. Align after .bss to ensure correct alignment even if the .bss section disappears because there are no input sections. FIXME: Why do we need it? When there is no .bss section, we don't pad the .data section. */ . = ALIGN(. != 0 ? 32 / 8 : 1); } . = ALIGN(32 / 8); . = ALIGN(32 / 8); _end = .; PROVIDE (end = .); . = DATA_SEGMENT_END (.); /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } .stab.excl 0 : { *(.stab.excl) } .stab.exclstr 0 : { *(.stab.exclstr) } .stab.index 0 : { *(.stab.index) } .stab.indexstr 0 : { *(.stab.indexstr) } .comment 0 : { *(.comment) } /* DWARF debug sections. Symbols in the DWARF debugging sections are relative to the beginning of the section so we begin them at 0. */ /* DWARF 1 */ .debug 0 : { *(.debug) } .line 0 : { *(.line) } /* GNU DWARF 1 extensions */ .debug_srcinfo 0 : { *(.debug_srcinfo) } .debug_sfnames 0 : { *(.debug_sfnames) } /* DWARF 1.1 and DWARF 2 */ .debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug_pubnames) } /* DWARF 2 */ .debug_info 0 : { *(.debug_info .gnu.linkonce.wi.*) } .debug_abbrev 0 : { *(.debug_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } /* SGI/MIPS DWARF 2 extensions */ .debug_weaknames 0 : { *(.debug_weaknames) } .debug_funcnames 0 : { *(.debug_funcnames) } .debug_typenames 0 : { *(.debug_typenames) } .debug_varnames 0 : { *(.debug_varnames) } /* DWARF 3 */ .debug_pubtypes 0 : { *(.debug_pubtypes) } .debug_ranges 0 : { *(.debug_ranges) } .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) } /DISCARD/ : { *(.fixup) } /DISCARD/ : { *(.note.GNU-stack) *(.gnu_debuglink) *(.gnu.lto_*) } } ================================================== attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crt1.o succeeded /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crt1.o attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crti.o succeeded /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crti.o attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/crtbegin.o succeeded /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/crtbegin.o attempt to open /tmp/ccqVJm1W.o succeeded /tmp/ccqVJm1W.o attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc.so failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc.a succeeded attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so succeeded opened script file /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so opened script file /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so attempt to open libgcc_s.so.1 failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so.1 succeeded libgcc_s.so.1 (/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so.1) attempt to open libgcc.a failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc.a succeeded attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libc.so failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libc.a failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/lib/libc.so failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../../powerpc-unknown-linux-gnu/lib/libc.a failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../libc.so succeeded opened script file /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../libc.so opened script file /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../libc.so attempt to open /lib/libc.so.6 succeeded /lib/libc.so.6 attempt to open /usr/lib/libc_nonshared.a succeeded (/usr/lib/libc_nonshared.a)elf-init.oS attempt to open /lib/ld.so.1 succeeded /lib/ld.so.1 attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc.so failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc.a succeeded attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so succeeded opened script file /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so opened script file /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so attempt to open libgcc_s.so.1 failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so.1 succeeded libgcc_s.so.1 (/usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc_s.so.1) attempt to open libgcc.a failed attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/libgcc.a succeeded attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/crtend.o succeeded /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/crtend.o attempt to open /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crtn.o succeeded /usr/lib/gcc/powerpc-unknown-linux-gnu/4.5.3/../../../crtn.o ld.so.1 needed by /lib/libc.so.6 found ld.so.1 at /lib/ld.so.1