This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| On Feb 25, 5:06pm, H.J. Lu wrote: | > Subject: elf.sc and shared library for binutils | > 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: | | Maybe I am missing something, but why is this so important. | All we | end up doing is wasting one page of VM (not physical memory, just | virtual memory). | Is there something else here? If you don't do this, each program will be one physical page larger, since the pages in the data area would start on a new page, leaving a hole in the program file as it exists on disk between the text and data. This is why V.4 specifies this behavior. -- Michael Meissner, Cygnus Support (East Coast) Suite 105, 48 Grove Street, Somerville, MA 02144, USA meissner@cygnus.com, 617-629-3016 (office), 617-629-3010 (fax)