elf.sc and shared library for binutils

H.J. Lu hjl@nynexst.com
Sat Feb 25 14:08:00 GMT 1995


Here are some comments from elf.sc:

  /* Adjust the address for the data segment.  We want to adjust up to
     the same address within the page on the next page up.  It would
     be more correct to do this:
       ${RELOCATING+. = ${DATA_ADDR-ALIGN(${MAXPAGESIZE})
		+ ((ALIGN(8) + ${MAXPAGESIZE} - ALIGN(${MAXPAGESIZE}))
		   & (${MAXPAGESIZE} - 1)};}

I think the correct one should be

       ${RELOCATING+. = ALIGN(${MAXPAGESIZE})
		+ ((ALIGN(8) + ${MAXPAGESIZE} - ALIGN(${MAXPAGESIZE}))
		   & (${MAXPAGESIZE} - 1)};}

It should be independent of DATA_ADDR.

I have been adding the ELF shared library support for binutils under
Linux for a while. Any chance to support it in the official source?

H.J.




More information about the Gas2 mailing list