This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Stab type information in string field
- From: Ian Lance Taylor <ian at airs dot com>
- To: Ludovic Courtès <ludovic dot courtes at laas dot fr>
- Cc: binutils at sources dot redhat dot com
- Date: 02 Apr 2003 09:10:07 -0800
- Subject: Re: Stab type information in string field
- References: <20030321130910.GA9952@laas.fr> <m3wuis8gqh.fsf@gossamer.airs.com><20030331155419.GK342@laas.fr> <m3wuiff171.fsf@gossamer.airs.com><20030402093512.GX342@laas.fr>
Ludovic Courtès <ludovic dot courtes at laas dot fr> writes:
> On Mon, Mar 31, 2003 at 05:36:50PM -0800, Ian Lance Taylor wrote:
> > Not quite. N_EXCL comes with a number, in the symbol value field,
> > which is a hash of the contents of the header file. You have to find
> > the N_BINCL with the same header file name and the same number.
>
> Thanks a lot. This little detail is rather important in fact. ;)
> The manual documents this as being a mysterious feature of the SunOS4
> linker. Maybe it should be mentioned there that the GNU linker does
> exactly the same and that the value field can be used to distinguish
> among several different inclusions of the same header file.
This information is also in the current version of the GNU stabs
manual.
I don't know which version you are reading, but at this point I really
urge you to throw it away and instead read the current version, which
can be found at
http://sources.redhat.com/gdb/download/onlinedocs/stabs.html
I updated that manual in a number of ways in 1997, and it appears that
you are reading a version from before those updates.
Ian