Stab type information in string field
Ian Lance Taylor
ian@airs.com
Wed Apr 2 17:10:00 GMT 2003
Ludovic Courtès <ludovic.courtes@laas.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
More information about the Binutils
mailing list