catch "new" gcc 3.4.0 sections
PATCH 1/1 catch "new" gcc 3.4.0 sections
Building with gcc 3.4.0 emits a couple new sections, .rodata.cst4 and .rodata.str1.4, which the current ld.script doesn't contemplate. Here is a patch to catch them (and maybe some other latent ones).
Anyone know why or when these sections are emitted?
Regards,
Brad
mips/ld.script.in 13 Apr 2004 19:18:25 -0000 renamed from mips/ld.script.in 10 Nov 2003 21:06:52 -0000 1.1.1.1 +5 -0
@@ -11,6 +11,11 @@ *(.text) *(.rodata) *(.rodata1) + *(.rodata.str1.1); + *(.rodata.str1.4); + *(.rodata.str1.32); + *(.rodata.cst4); + *(.rodata.cst8); /* .gnu.warning sections are handled specially by elf32.em. */ *(.gnu.warning) } =0
Quoted 5 lines · Bradley D. LaRonde
Building with gcc 3.4.0 emits a couple new sections, .rodata.cst4 and .rodata.str1.4, which the current ld.script doesn't contemplate. Here is a patch to catch them (and maybe some other latent ones).
Anyone know why or when these sections are emitted?
I'd guess to keep differently aligned strings in separate sections, as a preliminary for improved string merging.
Quoted 8 lines
Regards,
Braddiff -u -r1.1.1.1 ld.script.in
mips/ld.script.in 13 Apr 2004 19:18:25 -0000 line 18
Quoted 8 lines
mips/ld.script.in 13 Apr 2004 19:18:25 -0000 renamed from mips/ld.script.in 10 Nov 2003 21:06:52 -0000 1.1.1.1 +5
-0@@ -11,6 +11,11 @@ *(.text) *(.rodata) *(.rodata1) + *(.rodata.str1.1); + *(.rodata.str1.4); + *(.rodata.str1.32); + *(.rodata.cst4); + *(.rodata.cst8);
Why not just *(.rodata*); ?
Thiemo
----- Original Message -----
From: "Thiemo Seufer" <[email protected]>
To: <[email protected]>
Sent: Tuesday, April 13, 2004 3:31 PM
Subject: Re: [PATCH] catch "new" gcc 3.4.0 sections
Quoted 3 lines
Quoted 2 lines · Bradley D. LaRonde
Building with gcc 3.4.0 emits a couple new sections, .rodata.cst4 and .rodata.str1.4, which the current ld.script doesn't contemplate. Here
is a
Quoted 11 lines
Quoted 3 lines
patch to catch them (and maybe some other latent ones).
Anyone know why or when these sections are emitted?
I'd guess to keep differently aligned strings in separate sections, as a preliminary for improved string merging.
Quoted 4 lines
Regards,
Brad
Quoted 14 lines
mips/ld.script.in 13 Apr 2004 19:18:25 -0000 line 18
Quoted 12 lines
diff -u -r1.1.1.1 ld.script.in
mips/ld.script.in 13 Apr 2004 19:18:25 -0000 renamed from mips/ld.script.in 10 Nov 2003 21:06:52 -0000 1.1.1.1 +5
-0@@ -11,6 +11,11 @@ *(.text) *(.rodata) *(.rodata1) + *(.rodata.str1.1); + *(.rodata.str1.4); + *(.rodata.str1.32); + *(.rodata.cst4); + *(.rodata.cst8);Why not just *(.rodata*); ?
I dunno. There is already a tradition with .rodata and .rodata1 being listed separately. Maybe to spy on future gcc behavior?
Regards,
Brad