Re: [PATCH] Fix kernel linker scripts

Jakub Jelinek (jakub@redhat.com)
Tue, 3 Jul 2001 04:46:15 -0400


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/