1 |
On Wed, Apr 20, 2016 at 11:07 PM, Mike Frysinger <vapier@g.o> wrote: |
2 |
|
3 |
> On 20 Apr 2016 13:52, Leno Hou wrote: |
4 |
> > Authored-by: Linda Jiang <linda.qj25@×××××.com> |
5 |
> > --- |
6 |
> > eclass/toolchain-binutils.eclass | 1 + |
7 |
> > 1 file changed, 1 insertion(+) |
8 |
> |
9 |
> when you submit a patch that is not extremely obvious, you must provide |
10 |
> details/justification in the commit message. otherwise we're forced to |
11 |
> try and guess what/why it is you want to do things, and ultimately we |
12 |
> tend to start of just saying "no". |
13 |
> |
14 |
|
15 |
Sorry, We describes details/justification in Gentoo Bugzilla#580614 |
16 |
<https://bugs.gentoo.org/show_bug.cgi?id=580614>. Explain here again. |
17 |
|
18 |
1) When use CHOST="powerpc64le-unknown-linux-gnu" (active host?) to build |
19 |
binutils. there is no birch support. |
20 |
See current supported emulations#powerpc64le-unknown-linux-gnu-ld -V |
21 |
|
22 |
leno@localhost ~ $ powerpc64le-unknown-linux-gnu-ld -V |
23 |
|
24 |
GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 |
25 |
|
26 |
Supported emulations: |
27 |
|
28 |
elf64lppc |
29 |
|
30 |
elf32lppc |
31 |
|
32 |
elf32lppclinux |
33 |
|
34 |
elf32lppcsim |
35 |
|
36 |
But we want elf64ppc for building grub2. If we there is no elf64ppc |
37 |
emulation, we can't compiling grub2 and grub2-install |
38 |
for ppc64le platform. |
39 |
|
40 |
2) Following are the emulations what we want |
41 |
|
42 |
leno@localhost ~ $ powerpc64le-unknown-linux-gnu-ld -V |
43 |
|
44 |
GNU ld (Gentoo 2.25.1 p1.1) 2.25.1 |
45 |
|
46 |
Supported emulations: |
47 |
|
48 |
elf64lppc |
49 |
|
50 |
elf32lppc |
51 |
|
52 |
elf32lppclinux |
53 |
|
54 |
elf32lppcsim |
55 |
|
56 |
elf32ppclinux |
57 |
|
58 |
elf32ppc |
59 |
|
60 |
elf32ppcsim |
61 |
|
62 |
elf64ppc |
63 |
|
64 |
3) Linda Jiang found that *--enable-targets=all *make on sense to build the |
65 |
above emulations what we want. |
66 |
But *--enable-targets="powerpc-linux-gnu" *built the targets we want. |
67 |
If there is no other arch-specific |
68 |
handled like this, Is there another can handle this case? where is the |
69 |
file you attached ? |
70 |
|
71 |
and indeed, when i query a default ppc64 linker, it says it already |
72 |
> supports both 32bit & 64bit targets: |
73 |
> $ powerpc64-unknown-linux-gnu-ld --help | grep supported |
74 |
> powerpc64-unknown-linux-gnu-ld: supported targets: elf64-powerpc |
75 |
> elf64-powerpcle elf32-powerpc elf32-powerpcle aixcoff-rs6000 |
76 |
> aixcoff64-rs6000 aix5coff64-rs6000 elf64-little elf64-big elf32-little |
77 |
> elf32-big plugin srec symbolsrec verilog tekhex binary ihex |
78 |
> powerpc64-unknown-linux-gnu-ld: supported emulations: elf64ppc elf32ppc |
79 |
> elf32ppclinux elf32ppcsim |
80 |
> |
81 |
> it would have to of course in order for biarch support (which works) |
82 |
> which is how we build 64-bit kernels in a 32-bit userland. |
83 |
> -mike |
84 |
> |