Gentoo Archives: gentoo-embedded

From: Christopher Friedt <cfriedt@××××××××××××××.com>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] bug introduced in GCC patches
Date: Sat, 19 Jan 2008 22:47:01
Message-Id: 47927DF1.3020800@visible-assets.com
In Reply to: Re: [gentoo-embedded] bug introduced in GCC patches by Ned Ludd
1 Hi Ned,
2
3 I think it's been assigned to the toolchain folks already, but it's in
4 bugzilla at any rate:
5
6 http://bugs.gentoo.org/show_bug.cgi?id=206525
7
8 Incidentally, there has been some talk that the included fastjar sources
9 have been taken out of upstream gcc, and they've resorted to using an
10 existing fastjar or jar detected by configure.
11
12 http://gcc.gnu.org/ml/java-patches/2006-q1/msg00381.html
13
14 I have a patch for gcc-4.1.2 to enable that as well.
15
16 http://vaiprime.visibleassets.com/~cfriedt/patches/gcc-4.1.2-externalize-jar.patch
17
18 When I tried to build with java support it failed all of the time before
19 I applied this patch. I guess the downside is that you'd need an
20 existing fastjar or jar binary on your build system.
21
22 Cheers,
23
24 Chris
25
26 Ned Ludd wrote:
27 > This absolutely should be reported to toolchain@gentoo via
28 > https://bugs.gentoo.org
29 >
30 >
31 > On Fri, 2008-01-18 at 05:05 +0100, Christopher Friedt wrote:
32 >> Hi,
33 >>
34 >> I was just wondering if I should submit a bug report for
35 >> sys-devel/gcc-4.1.2 on Gentoo's main bugzilla -
36 >>
37 >> it's exactly the same problem found here:
38 >>
39 >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=422971
40 >>
41 >> and I've traced it to
42 >>
43 >> gcc-4.1.2-patches-1.0.2.tar.bz2/patch/62_all_gcc4-noteGNUstack.patch
44 >>
45 >>
46 >> Incorrect:
47 >> ===================================================================
48 >> --- libffi/src/arm/sysv.S.jj 2004-10-28 15:10:11.000000000 +0200
49 >> +++ libffi/src/arm/sysv.S 2005-02-08 16:14:02.282767581 +0100
50 >> @@ -207,3 +207,6 @@ LSYM(Lepilogue):
51 >> .ffi_call_SYSV_end:
52 >> .size
53 >> CNAME(ffi_call_SYSV),.ffi_call_SYSV_end-CNAME(ffi_call_SYSV)
54 >>
55 >> +#if defined __ELF__ && defined __linux__
56 >> + .section .note.GNU-stack,"",@progbits
57 >> +#endif
58 >> ===================================================================
59 >> Correct:
60 >> ===================================================================
61 >> --- libffi/src/arm/sysv.S.jj 2004-10-28 15:10:11.000000000 +0200
62 >> +++ libffi/src/arm/sysv.S 2005-02-08 16:14:02.282767581 +0100
63 >> @@ -207,3 +207,6 @@ LSYM(Lepilogue):
64 >> .ffi_call_SYSV_end:
65 >> .size
66 >> CNAME(ffi_call_SYSV),.ffi_call_SYSV_end-CNAME(ffi_call_SYSV)
67 >>
68 >> +#if defined __ELF__ && defined __linux__
69 >> + .section .note.GNU-stack,"",%progbits
70 >> +#endif
71 >> ===================================================================
72 >>
73 >> There are several similar patches in that file, and they all share the
74 >> same syntax, so I would imagine that all of the lines containing
75 >>
76 >> + .section .note.GNU-stack,"",@progbits
77 >>
78 >> are incorrect in the whole patch file, but I cannot confirm.
79 >>
80 >> ~/Chris
81 >
82 --
83 gentoo-embedded@l.g.o mailing list