Gentoo Archives: gentoo-embedded

From: Ned Ludd <solar@g.o>
To: "Peter S. Mazinger" <ps.m@×××.net>
Cc: gentoo-embedded@l.g.o, gentoo-hardened@l.g.o
Subject: Re: [gentoo-embedded] Re: uclibc base system
Date: Wed, 23 Jun 2004 18:57:46
Message-Id: 1088016794.14066.838.camel@simple
In Reply to: Re: [gentoo-embedded] Re: uclibc base system by "Peter S. Mazinger"
1 On Tue, 2004-06-22 at 20:21, Peter S. Mazinger wrote:
2 > On 22 Jun 2004, Ned Ludd wrote:
3 >
4 > > > > Attempted to drop the uclibc-patches tarball and compile without any of
5 > > > > those misc patches as they all seem pie-ssp related or unneeded cruft
6 > > > > that really does not apply to uClibc at all like -z relro.
7 > > >
8 > > > I do not use the relro/now patches, the ebuild removes them for now (they
9 > > > are only for completeness)
10 > >
11 > > After talking to mjn3 I don't think relro will even be considered for
12 > > uClibc till some time after 1.0
13 >
14 > could someone else port this to ldso?
15 >
16 > >
17 > > >
18 > > > >
19 > > > > USE="-*" ebuild uclibc-0.9.26-r1.ebuild clean unpack compile
20 > > >
21 > > > have you done this in a buildroot, or on a glibc portage based system?
22 > >
23 > > glibc.. Has to be glibc at first as there exists no seed stage yet with
24 > > supporting portage shared objects.
25 > > Point being is that the uclibc.ebuild is a no go.. I can't merge
26 > > something that fails to test properly. If it fails on a glibc system
27 > > then it will never be accepted into portage. uClibc (old wrapper style)
28 > > is already used by misc gentoo projects for PXE netbooting etc.
29 >
30 > I have attached a new version for uClibc, the ssp.c file is the same as
31 > for glibc
32 >
33 > it builds for me in glibc and uclibc env.
34
35 Added that portage.
36
37 - x86 -
38 No problems at all.
39 Tested with
40 gcc version 3.3.3 20040412 (Gentoo Hardened Linux 3.3.3-r4, ssp-3.3-7,
41 pie-8.7.3)
42 GNU ld version 2.15.91.0.1 20040527
43
44 - arm -
45 I encountered an ldso problem with static inlines being included twice,
46 so I added a patch (few mins ago) that fixes this and allows arm to
47 compile.
48 talking with Erik he said it was solved two days ago on the ml.
49 http://www.uclibc.org/lists/uclibc-cvs/2004-June/004620.html
50 but I like my patch better as it prevents it from ever happening again.
51 http://dev.gentoo.org/~solar/uclibc/uClibc-cvs-arm-dl-sysdep.diff
52 Tested with
53 gcc version 3.3.3 20040412 (Gentoo Linux 3.3.3-r5, ssp-3.3-7,
54 pie-8.7.5.3)
55 GNU ld version 2.15.90.0.3 20040415
56
57 - mips4 -
58 Compile worked like a charm only thing that did not quite work out the
59 way I expected was mips4 got compiled as mips1.
60 Tested with gcc version 3.4.0 (Gentoo Linux 3.4.0, pie-8.5.3)
61 GNU ld version 2.14.90.0.8 20040114
62
63 - ppc -
64 Not tested yet.
65
66 - sparc -
67 Not tested yet.
68
69
70 Note:
71 All tested were done from glibc native environments with these options
72 set "dev-libs/uclibc-0.9.26-r2 -build -hardened -ipv6 -uclibc"
73
74 -----------------------------------------------------------------------
75 Side Note Off Topic:
76
77 Both arm & mips fail a simple
78 echo 'int main() { return 0; }' > main.c
79 gcc -o main main.c -pie
80
81 /usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x38): In function
82 `__libc_csu_init':
83 : undefined reference to `__init_array_start'
84 /usr/lib/libc_nonshared.a(elf-init.oS)(.text+0x3c): In function
85 `__libc_csu_init':
86 : undefined reference to `__init_array_end'
87
88 I think these symbols are provided by linker scripts.
89 Seen anything floating around where others have run into the same thing?
90 If so recall the solution?
91
92 >
93 > Peter
94 >
95 > ______________________________________________________________________
96 > --
97 > gentoo-embedded@g.o mailing list
98 --
99 Ned Ludd <solar@g.o>
100 Gentoo (hardened,security,infrastructure,embedded,toolchain) Developer

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
[gentoo-embedded] Re: (was) uclibc base system; arm and pie "Peter S. Mazinger" <ps.m@×××.net>