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: Any MIPS experts?


Dave Korn wrote:
> 
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=702
> 
> 
>   PR702 is about object file bloat introduced in recent binutils versions
> owing to the alignment of one of the sections having been increased from
> 4kB->64kB; the linker is apparently placing explicit padding in the output
> files.  We've been trying to fix this on the crossgcc list[*] without
> success, having tried patches to both gcc[**] and gas[***], and I haven't
> been able to track down any discussion of this issue from the mailing list
> archives.

The .data is placed at some offset in address space (because IRIX did
the same), The introduction of alignment for 64k page size caused then
the preceeding text segment to get padded to the next 64k border instead
of the 4k padding used before.

>   Does any of this ring any bells with MIPS gurus on the list?  Has anyone
> got a fix?  Is it meant to be like this or is it a real bug?

>From the ld changelog:

2005-06-01  Maciej W. Rozycki  <macro@linux-mips.org>

	* emulparams/elf32btsmip.sh: Unset DATA_ADDR.
	
This removes the weird separate .data for "traditional" (linux-like)
mips. Also, in some cases ld -N may be acceptable as a workaround for
the problem.


Thiemo


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