[uClibc] Re: 0x10000 PT_LOAD Segment alignment on MIPS makes my ELF files 64 kb big

TINNES Julien RD-MAPS-ISS julien.tinnes at francetelecom.com
Mon Feb 7 14:25:43 UTC 2005


> Binutils changed this between 2.14 and 2.15.  Near the end of 
> bfd/elf32-mips.c you will find the line:
> 
> #define ELF_MAXPAGESIZE            0x10000
> 
> If you change it back to 0x1000 and rebuild binutils I think it will do 
> what you want.

You're right this is the value which is then retrieved from a bfd 
structure in elf.c.

Reading the source code it seems that the purpose is really to use the 
maximum page size compatible with both target OS and target architecture.

But as uClibc's goal is to make things smaller maybe there is room there 
for a patch to add an option that would #define a more accurate value in 
xxxx-target.h ?
Or maybe ppl should use the -N switch and not align even to kB?

-- 
Julien TINNES - & france telecom - R&D Division/MAPS/NSS
Research Engineer - Internet/Intranet Security
GPG: C050 EF1A 2919 FD87 57C4 DEDD E778 A9F0 14B9 C7D6



More information about the uClibc mailing list