[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pc386 linker script
- Date: Wed, 30 Sep 1998 12:22:03 -0500 (CDT)
- From: joel at oarcorp.com (joel at oarcorp.com)
- Subject: pc386 linker script
On 30 Sep 1998, Ian Lance Taylor wrote:
> The pc386 linker scripts omits .gnu.linkonce.r* sections. It's not a
> big deal, but they should be treated like .rodata sections. ELF
> versions of g++ generate them for static constants defined in template
> classes, such as string::npos.
Wisdom from the master!!!! :)
I have fixed this in all the linkcmds which had .rodata sections. I did
not find .rodata sections in the following linkcmds so did nothing.
i386ex (Erik I. could you look into this one.)
m68k/* (not elf)
sparc/erc32
Ian ... please provide feedback on linker scripts. Any hints, advice are
appreciated. These are defintely from the "it works well enough" catefory
of development. Over the years, I have tried to make them more consistent
but fear of breaking them has limited that.
--joel
> I've appended the trivial patch to
> c/src/lib/libbsp/i386/pc386/startup/linkcmds
>
> It's possible that other linker scripts also omit these sections. I
> didn't look.
>
> Is there any sort of ChangeLog or change listing for RTEMS?
>
> Ian
>
> --- linkcmds 1998/08/21 05:15:40 1.1.1.1
> +++ linkcmds 1998/09/30 16:39:23
> @@ -62,6 +62,7 @@
>
> _rodata_start = . ;
> *(.rodata)
> + *(.gnu.linkonce.r*)
> _erodata = ALIGN( 0x10 ) ;
>
> _etext = ALIGN( 0x10 ) ;
>