Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Dec 2009 10:19:11 -0200
From:      Renato Botelho <rbgarga@gmail.com>
To:        Konstantin Belousov <kib@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: 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
Message-ID:  <747dc8f30912070419g51db0a7i6cf1990b501985dc@mail.gmail.com>
In-Reply-To: <747dc8f30912070409u2c870e06p7c546c878311ed75@mail.gmail.com>
References:  <200912021634.nB2GYLSq031398@svn.freebsd.org> <747dc8f30912070409u2c870e06p7c546c878311ed75@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 7, 2009 at 10:09 AM, Renato Botelho <rbgarga@gmail.com> wrote:
> On Wed, Dec 2, 2009 at 2:34 PM, Konstantin Belousov <kib@freebsd.org> wro=
te:
>> Author: kib
>> Date: Wed Dec =A02 16:34:20 2009
>> New Revision: 200038
>> URL: http://svn.freebsd.org/changeset/base/200038
>>
>> Log:
>> =A0Properly support -fPIE by linking PIE binaries with specially-built
>> =A0Scrt1.o instead of crt1.o, since the later is built as non-PIC.
>>
>> =A0Separate i386-elf crt1.c into the pure assembler part and C code,
>> =A0supplying all data extracted by assembler stub as explicit parameters=
 [1].
>> =A0Hide and localize _start1 symbol used as an interface between asm and
>> =A0C code.
>
> I've got this:
>
> root@botelhor:/usr/src/lib/csu/i386-elf# make
> cc -O2 -pipe =A0-I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99
> -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 =A0-I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99
> -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 =A0-I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99
> -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 =A0-I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99
> -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 =A0-o gcrt1.o -r crt1_s.o gcrt1_c.o
> cc -O2 -pipe =A0-I/usr/src/lib/csu/i386-elf/../common
> -I/usr/src/lib/csu/i386-elf/../../libc/include -std=3Dgnu99
> -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] =A0 =A036086 exit 2 =A0 =A0 make

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

--=20
Renato Botelho



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?747dc8f30912070419g51db0a7i6cf1990b501985dc>