This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: only force symbol lookups with local variables on hppa


On Mon, Aug 21, 2006 at 08:29:41PM +0200, Mark Kettenis wrote:
> Actually, I'm afraid the assumption that symbols do not start with a
> dollar sign isn't true on most platforms: I just created some
> assembler code that contains such symbols and it assembles, links and
> runs fine on OpenBSD/i386.  I have no doubt that the same will be true
> on other ELF systems using the GNU toolchain.

That's right; it's just not typical except on HPPA, where it involves
some symbols we actually care about (millicode routines, I think?).
Many C compilers allow dollars in the middle of symbols; they don't
allow them at the start, but the underlying assembler generally does.
ELF doesn't care at all, of course.

-- 
Daniel Jacobowitz
CodeSourcery


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