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?


On Thu, 22 Sep 2005, Dave Korn wrote:

> > 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.
> 
> 
>   Brilliant.  Thanks a load Thiemo!

 Note that the increased alignment shouldn't actually affect the size of 
files generated, as trailing padding for segments is supported for ELF 
without occupying file space (cf "file size" vs "memory size" for 
segments).  Thus if that's what happens, then there is a problem with that 
particular toolchain.

$ cat main.c
int main(void)
{
	return 0;
}
$ mipsel-linux-gcc -o main main.c
$ ls -la main
-rwxr-xr-x  1 macro macro 7378 Sep 23 16:21 main

  Maciej


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