This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
How can I change ELF_MAXPAGESIZE using ld emulparam/*.sh scripts?
- From: Mitesh Shah <miteshriya at yahoo dot com>
- To: binutils at sourceware dot org
- Date: Tue, 22 Apr 2008 11:33:33 -0700 (PDT)
- Subject: How can I change ELF_MAXPAGESIZE using ld emulparam/*.sh scripts?
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