????? ???????????? wrote:
> Why does $ROOT/.../map.default link to map.below4G for AMD64 and
> map.above4G for SPARC64?
> Both are 64bit platforms and using a 64bit address which does not fit
> into a 32bit data type would be better for finding bugs.
> Or not?
> 
> Olga

I believe that mapfile is intended to demonstrate how to write a
mapping description for the link-editor's default behavior on those
platforms. The two platforms are different in that way, and I guess
that it must be due to their respective ABIs.

Here is the comment from a soon to be integrated update
to that file that is a bit more clear:

   24 # Linker mapfile that shows how programs are loaded by default.
   25 # The linker does not use this file automatically, so one must use the -M
   26 # option to cc or ld:
   27 #
   28 #       cc -M /usr/lib/ld/map.default myprogram.c

You could certainly make your own debugging mapfile to
put the text segment elsewhere if you thought that might
help debug things.

- Ali

Reply via email to