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: remote/1832: spaces in directory names


Brendan Kehoe wrote:

  - I'm curious about the mystical second argument to the LOAD command
in GDB; it's only mentioned in the docs related to the Sparlet, and even
then only in passing.

It's ancient, and mostly not used any more. One place that does still use it is monitor.c::monitor_load (q.v.)

The second argument was a base address or offset where
you wanted the load to be relocated.  This was basically
a hold-over from the days of a.out (in which the sections
were assumed to start at zero).

There was once a GNU extension called b.out, which was
a.out plus a section load offset.

Everything since coff has allowed an individual offset
per section to be specified.




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