--enable-auto-image-base, code for it?

Tom Kacvinsky tkacvins@gmail.com
Mon Apr 4 12:42:00 GMT 2022


I've been trying (and failing) to find the code in binutils that does the magic
for --enable-auto-image-base.  Reason being is I want to understand at a
lower level view of what it is doing.  I understand at a high level
what is meant
to do (and seems to have fixed my problem on Cygwin with conflicting image
bases).  I think if I understand it at a low enough level, I will be
able to figure
out if it'll clobber all such problems (at least in our code base)
going forward.

Right now, a "grep -rl enable-auto-image-base" returns a bunch of .po files.
thr configure* files and *.m4 files, without giving any hits in .c and .h files.

I see there is a hit for some stuff related to auto image basing (using `_'  in
place pf `-') in pe.em and pep.em.  But the variables defined there, AFAIC tell,
are not referenced anywhere else.

What am I missing?

Thanks,

Tom


More information about the Binutils mailing list