Gentoo Archives: gentoo-embedded

From: "Peter S. Mazinger" <ps.m@×××.net>
To: Ned Ludd <solar@g.o>
Cc: pappy@g.o, gentoo-embedded@l.g.o
Subject: [gentoo-embedded] Re: (was) working hxgcc, related to uclibc
Date: Fri, 23 Jan 2004 10:11:41
Message-Id: Pine.LNX.4.44.0401231031090.24073-100000@lnx.bridge.net
1 Some comments regarding uclibc:
2
3 On 22 Jan 2004, Ned Ludd wrote:
4
5 > pappy,
6 >
7 > I'm CC: peter so he can get a heads up on what we are thinking.
8 >
9 > Attachments included.
10 >
11 > This is also building on your box.
12 > In the screen chroot but it's not in the not in an overlay.
13 >
14 > Also pappy to make Martin happy could you confirm the guard scan takes
15 > place every single time gcc is built. You suggested the idea to him so a
16 > patch to have the ebuild behave the way you said in a previous mail
17 > would be great. The base-system herd wants this so -r5 can be pushed to
18 > stable. I also want see 3.3.2 go stable because it will allow us get
19 > everybody on the same page with basic toolchain pie support.
20 >
21 > ...
22 > * Done with patching
23 > * Applying
24 > gcc331-pp-fixup.patch... [ ok ]
25 > * Applying
26 > protector.dif... [ ok ]
27 > * Applying
28 > gcc-3.3.2-gentoo-branch-update-20031218-pie-ssp.patch... [ ok ]
29
30 This patch has fixed crt1.o, uclibc works with pie also for crt0.o. One
31 solution would be to patch uclibc so, that it copies crt0.o as crt1.o (as
32 I did with Scrt1.o for the case CTOR_DTOR is not defined), then no change
33 is needed to work with uclibc. I'll check with Erik if he will do the
34 change to uclibc, if not this patch has to be somehow adapted to check for
35 uClibc-config.h file.
36
37 > * Applying
38 > gcc332-gentoo-branding.patch... [ ok ]
39 >
40 > * This sys-libs/glibc has __guard object and __stack_smash_handler
41 > functions
42 > * scanning the system for binaries with __guard - this may take 5-10
43 > minutes
44 > * Please do not press ctrl-C or ctrl-Z during this period - it will
45 > continue
46 >
47 > * Scanning system for __guard@GCC symbols...
48 > * Scanning 01 of 10 /lib...
49 > * Scanning 02 of 10 /usr/lib...
50
51 The ssp_scan is easy to implement for uClibc (check for ld-uClibc.so.0
52 presence, and check libc.so.0), but how do we know, if uClibc is main
53 libc, should we check first for ld-uClibc.so, then if it is present,
54 check if also libc.so.6 is present, if yes, then glibc is main libc, else
55 uClibc. The check is needed because propolice is an option (yet) in
56 uClibc, so there could be versions not having __guard/__smash...
57
58 Peter,
59
60 --
61 Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
62 Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
63
64
65 ____________________________________________________________________
66 Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
67 Probald ki most! http://www.freestart.hu
68
69 --
70 gentoo-embedded@g.o mailing list

Replies