This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: S records without NULL's


Tom Brusehaver writes:
>
> I wrote my first assembly file for the Coldfire board (gnu as 2.8).  I
> used objcopy to convert to s19 file, but it is over 170K!
>
>   -rw-rw-r--  1 tom        174898 May  5 22:05 prg.s19
>   -rw-rw-r--  1 tom           736 May  5 21:57 prg.lst
>   -rw-rw-r--  1 tom         66168 May  5 21:57 prg.o
>   -rw-rw-r--  1 tom           217 May  5 21:57 pgm4-5.asm
>
>
> I look in the file, and it is about 170K nulls.  I assume it is
> filling the begining of my program with nulls.
>
> My question is, how do I prevent this?

One switch that can help a great deal is -R <section-name>
which can be used if some of your sections don't need to be
loaded (as is frequently the case with proms).  Here is its
description:

     -R sectionname, --remove-section=sectionname
          Remove the named section from the file.  This option
          may be given more than once.  Note that using this
          option inappropriately may make the output file
          unusable.

Hope that helps a little.

Mike
--
C. M. Heard
VVNET, Inc.                           phone:  +1 408 247 9376
4040 Moorpark Ave. Suite 206          fax:    +1 408 244 3651
San Jose, CA 95117 USA                e-mail: heard@vvnet.com