lkml.org 
[lkml]   [2001]   [Jul]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Fix kernel linker scripts
On Tue, Jul 03, 2001 at 02:06:48PM +1000, Keith Owens wrote:
> On Mon, 2 Jul 2001 11:53:51 -0400,
> Jakub Jelinek <jakub@redhat.com> wrote:
> >Apparently all kernel scripts only have .rodata and not also .rodata.* input
> >sections in it.
> >- .rodata : { *(.rodata) }
> >+ .rodata : { *(.rodata) *(.rodata.*) }
>
> Any reason not to use *(.rodata*) to cover all rodata sections? I see
> no need for two input definitions, one works for me.

The reason why I wrote it this way is so that it matches default ld linker
scripts:
...
.rodata : { *(.rodata) *(.rodata.*) *(.gnu.linkonce.r.*) }
.rodata1 : { *(.rodata1) }
...
Of course, *(.rodata*) would work as well and provided nobody creates
sections like .rodatafoo, the behaviour would be the same as well.

Jakub
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.104 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site