svn commit: r200038 - in head: contrib/gcc/config lib/csu/amd64 lib/csu/arm lib/csu/i386-elf lib/csu/ia64 lib/csu/mips lib/csu/powerpc lib/csu/sparc64

Renato Botelho rbgarga at gmail.com
Mon Dec 7 12:19:33 UTC 2009


On Mon, Dec 7, 2009 at 10:09 AM, Renato Botelho <rbgarga at gmail.com> wrote:
> On Wed, Dec 2, 2009 at 2:34 PM, Konstantin Belousov <kib at freebsd.org> wrote:
>> Author: kib
>> Date: Wed Dec  2 16:34:20 2009
>> New Revision: 200038
>> URL: http://svn.freebsd.org/changeset/base/200038
>>
>> Log:
>>  Properly support -fPIE by linking PIE binaries with specially-built
>>  Scrt1.o instead of crt1.o, since the later is built as non-PIC.
>>
>>  Separate i386-elf crt1.c into the pure assembler part and C code,
>>  supplying all data extracted by assembler stub as explicit parameters [1].
>>  Hide and localize _start1 symbol used as an interface between asm and
>>  C code.
>
> I've got this:
>
> root at botelhor:/usr/src/lib/csu/i386-elf# make
> cc -O2 -pipe  -I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
> -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c
> /usr/src/lib/csu/i386-elf/crti.S
> cc -O2 -pipe  -I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
> -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c
> /usr/src/lib/csu/i386-elf/crtn.S
> cc -O2 -pipe  -I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
> -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -Wno-pointer-sign -DGCRT -c -o
> gcrt1_c.o /usr/src/lib/csu/i386-elf/crt1_c.c
> cc -O2 -pipe  -I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
> -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c
> /usr/src/lib/csu/i386-elf/crt1_s.S
> ld  -o gcrt1.o -r crt1_s.o gcrt1_c.o
> cc -O2 -pipe  -I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=gnu99
> -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch
> -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline
> -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c
> /usr/src/lib/csu/i386-elf/crt1_c.c
> make: don't know how to make /usr/src/lib/csu/i386-elf/crt1.c. Stop
> [1]    36086 exit 2     make

nevermind, rm -rf /usr/obj/usr/src/lib/csu fixed the problem.

-- 
Renato Botelho


More information about the svn-src-head mailing list