www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/21/01:12:30

Message-Id: <199610210452.AAA21217@delorie.com>
From: "Troy D. Van Horn" <trvanhor AT UCollege DOT edu>
Subject: V2.01 AS.EXE (2.7) puts local labels in obj. file
To: djgpp AT delorie DOT com
Date: Sun, 20 Oct 1996 23:52:30 CDT
Cc: trvanhor AT SNOOPY DOT UCollege DOT edu

Hi all,

     I just downloaded djgpp v2.01 today, and so far, everything
seems to work fine.
     I noticed, though, when I recompiled a small library I have,
the object file grew about 3000 bytes from 5800 to 9000 bytes long.
Looking in the file with a file viewer, and using objdump.exe, I
discovered that all the Lxxx symbols the compiler produces in the
assembly code are retained in the object after assembly. The AS
documentation (info as symbols 'symbol names') states that all
symbols which begin with an L are local labels and are not retained
in the object file unless as is invoked with the -L option.
     I invoked gcc with -v, and gcc is not passing a -L option to
the assembler, so why is it putting the Lxxx symbols in the object
file? It is not a big problem, but it does unnecessarily increase
the size of object files, and by extension, library files.
     Is there anything that can be done to change this? I suppose
I could try to use as.exe from V2.0 instead.

Troy Van Horn

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019