This is the mail archive of the binutils@sourceware.org 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: How can I change ELF_MAXPAGESIZE using ld emulparam/*.sh scripts?


You can use

-z max-page-size=SIZE

to change it at command line.

H.J.
---
On Tue, Apr 22, 2008 at 11:33 AM, Mitesh Shah <miteshriya@yahoo.com> wrote:
> Hi,
>  I want to change the ELF_MAXPAGESIZE value in bfd without changing the elf32-<targ>.c file. Is it possible to change it through ld emulparam scripts?
>  The problem I am trying to solve is to change the LOAD address for the first segment. It seems that becasue my TEXT_START_ADDR (0x200) is less than the first page boundary (0x1000). The load segment always starts from 0x000 and overwrites interrupt vector table. Is there a way to change the load start address/offset without fixing the PAGESIZE? I am assumign that the only way is to change ELF_MAXPAGESIZE value in elf32-<targ>.c file and I do not want to change the source so want to find out if I can do it externally?
>  Thanks,
>  -Mitesh
>
>
>
>       ____________________________________________________________________________________
>  Be a better friend, newshound, and
>  know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>


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