S records without NULL's
Charles M. Heard
Tue May 6 17:32:00 GMT 1997
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
-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
Hope that helps a little.
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: firstname.lastname@example.org
More information about the crossgcc