Minor feature for ld

Charles Lepple clepple@ghz.cc
Tue Sep 3 11:38:00 GMT 2002


DJ Delorie said:
> Watch out for leading underscores if your platform needs them, of
> course.

To add to this, you may want to compile a C version once without an
absolute address but with debugging enabled, then use the resulting
assembly (the .s file, obtained from -save-temps, or by stopping the
compiler after translation to assembly) together with an absolute address
assignment as DJ suggested.

This way, you find out whether or not your plaform needs underscores, and
you also find out what debugging pseudo-ops are necessary so that your
bitfields show up normally in gdb. Otherwise, gdb will most likely be
confused about the type of your absolute-address symbols.

-- 
Charles Lepple <clepple@ghz.cc>
http://www.ghz.cc/charles/




More information about the Binutils mailing list