clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 95dd7e1 was 99ccd00, checked in by Ken Moffat <zarniwhoop@…>, 17 years ago |
Let gcc-4.2.2 build a ppc64 kernel.
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Rev | Line | |
---|
[99ccd00] | 1 | Submitted By: Ken Moffat <zarniwhoop @ ntlworld dot com>
|
---|
| 2 | Date: 2008-01-06
|
---|
| 3 | Initial Package Version: 4.2.2
|
---|
| 4 | Upstream Status: Kicking around in bugzilla, apparently nobody cares.
|
---|
| 5 | Origin: Dinar Temirbulatov
|
---|
| 6 | Description: Allows gcc-4.2 to compile a modular kernel on ppc64. Rediffed
|
---|
| 7 | to apply with -p1.
|
---|
| 8 |
|
---|
| 9 | diff -Naur gcc-4.2.2/gcc/varasm.c gcc-4.2.2-PR31490/gcc/varasm.c
|
---|
| 10 | --- gcc-4.2.2/gcc/varasm.c 2007-09-01 16:28:30.000000000 +0100
|
---|
| 11 | +++ gcc-4.2.2-PR31490/gcc/varasm.c 2007-11-22 17:50:24.000000000 +0000
|
---|
| 12 | @@ -5452,12 +5452,14 @@
|
---|
| 13 | be read-only or not, but whether the dynamic link will have to
|
---|
| 14 | do something. If so, we wish to segregate the data in order to
|
---|
| 15 | minimize cache misses inside the dynamic linker. */
|
---|
| 16 | - if (reloc & targetm.asm_out.reloc_rw_mask ())
|
---|
| 17 | + if (reloc & targetm.asm_out.reloc_rw_mask ()
|
---|
| 18 | + && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
|
---|
| 19 | ret = reloc == 1 ? SECCAT_DATA_REL_LOCAL : SECCAT_DATA_REL;
|
---|
| 20 | else
|
---|
| 21 | ret = SECCAT_DATA;
|
---|
| 22 | }
|
---|
| 23 | - else if (reloc & targetm.asm_out.reloc_rw_mask ())
|
---|
| 24 | + else if (reloc & targetm.asm_out.reloc_rw_mask ()
|
---|
| 25 | + && !lookup_attribute ("section", DECL_ATTRIBUTES (decl)))
|
---|
| 26 | ret = reloc == 1 ? SECCAT_DATA_REL_RO_LOCAL : SECCAT_DATA_REL_RO;
|
---|
| 27 | else if (reloc || flag_merge_constants < 2)
|
---|
| 28 | /* C and C++ don't allow different variables to share the same
|
---|
Note:
See
TracBrowser
for help on using the repository browser.