Article View: gnu.gcc.help
Article #50840Re: how to get S-records from GNU ld?
From: Stephen Youndt
Date: Fri, 06 Aug 1993 13:16
Date: Fri, 06 Aug 1993 13:16
37 lines
1856 bytes
1856 bytes
In article <ERIC.93Aug4233622@iceland.telebit.com> eric@telebit.com (Eric Smith) writes:
>Is there some simple way to get S-record format output, preferrably from the
>command line without using a script? I've tried writing a script and can't
>seem to get that right either.
I use the following script. It works great.
OUTPUT_FORMAT (srec)
MEMORY
{
vsec : org = 0x00000000, len = 1K
tsec : org = 0x00004000, len = 4K
dsec : org = 0x00006000, len = 256
bsec : org = 0x00006100, len = 256
}
SECTIONS
{
vectors : { vector.o(.data) } >vsec
.text : { *(.text) } >tsec
.data : { *(.data) } >dsec
.bss : { *(.bss) *(COMMON) } >bsec
}
It even kind of makes sense. ;-)
I never did figure out how to make it do the right thing from
the command line.
>Thanks!
>Eric
Steve
--
Stephen M. Youndt | geek - n. [Perh. < dial. geek, fool < MLG geck.]
I-net: steve@hacker.smy.com | - A carnival performer whose act usually
UUCP: uunet!hacker!steve | consists of biting the head off a live
(703)978-6352 | chicken or snake.
Technical Details
Message-ID:
<CBCA74.JCI@hacker.uucp>Path:
arc1-ca.pugleaf.net!gmd.de!xlink.net!scsing.switch.ch!univ-lyon1.fr!zaphod.crihan.fr!pipex!uunet!hacker!steveReferences:
<ERIC.93Aug4233622@iceland.telebit.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,f86e43a8f013d0b3 X-Google-Attributes: gid11318c,public X-Google-Thread: feb3e,f86e43a8f013d0b3 X-Google-Attributes: gidfeb3e,public X-Google-ArrivalTime: 1993-08-06 07:01:59 PST Newsgroups: gnu.gcc.help,comp.sys.m68k Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!scsing.switch.ch!univ-lyon1.fr!zaphod.crihan.fr!pipex!uunet!hacker!steve From: steve@hacker.uucp (Stephen Youndt) Subject: Re: how to get S-records from GNU ld? References: <ERIC.93Aug4233622@iceland.telebit.com> Organization: My Home Computer, Burke, VA Date: Fri, 6 Aug 1993 13:16:15 GMT Message-ID: <CBCA74.JCI@hacker.uucp> Reply-To: steve@hacker.UUCP (Stephen Youndt) Lines: 37