This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: Minor feature for ld


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/



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