This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Any MIPS experts?
- From: "Maciej W. Rozycki" <macro at linux-mips dot org>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: "'Thiemo Seufer'" <ths at networkno dot de>, binutils at sourceware dot org
- Date: Fri, 23 Sep 2005 16:29:46 +0100 (BST)
- Subject: RE: Any MIPS experts?
- References: <SERRANOexdDAO2Rpy9t000001e2@SERRANO.CAM.ARTIMI.COM>
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