Date: Wed, 3 Feb 2010 17:19:30 +0200 From: Alexandr Rybalko <ray@dlink.ua> To: "M. Warner Losh" <imp@bsdimp.com> Cc: mips@freebsd.org Subject: Re: MIPS ldscript Message-ID: <20100203171930.ed680ebe.ray@dlink.ua> In-Reply-To: <20100203.071001.787670930858389487.imp@bsdimp.com> References: <20100203135457.be65e40e.ray@dlink.ua> <20100203.071001.787670930858389487.imp@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 03 Feb 2010 07:10:01 -0700 (MST) "M. Warner Losh" <imp@bsdimp.com> wrote: >> In message: <20100203135457.be65e40e.ray@dlink.ua> >> Alexandr Rybalko <ray@dlink.ua> writes: >> : Have trouble, possible ldscript problem, all executables have .data >> : segment started at 0x10000, so /usr/bin/true have size 70277. Help >> : to resolve problem. >> >> How are you building? Can you send the following: OK No ldd in cross toolchain, so ldd I test on runing MIPS device (BCM5354 DIR-320) >> >> ls -l /usr/bin/true > ls -l true -rwxr-xr-x 1 ray wheel 70277 3 лют 14:11 true >> size /usr/bin/true > size true text data bss dec hex filename 1837 124 20 1981 7bd true >> ldd /usr/bin/true %ldd /usr/bin/true /usr/bin/true: libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x50081000) libc.so.7 => /lib/libc.so.7 (0x500d3000) >> objdump -h /usr/bin/true > objdump -h true true: file format elf32-tradlittlemips Sections: Idx Name Size VMA LMA File off Algn 0 .interp 00000015 00400114 00400114 00000114 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .note.ABI-tag 00000018 0040012c 0040012c 0000012c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 2 .reginfo 00000018 00400144 00400144 00000144 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE 3 .dynamic 000000f8 0040015c 0040015c 0000015c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .hash 0000004c 00400254 00400254 00000254 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 .dynsym 000000e0 004002a0 004002a0 000002a0 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 6 .dynstr 00000093 00400380 00400380 00000380 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .gnu.version 0000001c 00400414 00400414 00000414 2**1 CONTENTS, ALLOC, LOAD, READONLY, DATA 8 .gnu.version_r 00000020 00400430 00400430 00000430 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 9 .init 0000005c 00400450 00400450 00000450 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 10 .text 00000320 004004b0 004004b0 000004b0 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 11 .MIPS.stubs 00000030 004007d0 004007d0 000007d0 2**2 CONTENTS, ALLOC, LOAD, READONLY, CODE 12 .fini 00000044 00400800 00400800 00000800 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 13 .rodata 00000001 00400844 00400844 00000844 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 14 .data 00000020 10000000 10000000 00010000 2**4 CONTENTS, ALLOC, LOAD, DATA 15 .rld_map 00000004 10000020 10000020 00010020 2**2 CONTENTS, ALLOC, LOAD, DATA 16 .eh_frame 00000004 10000024 10000024 00010024 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 17 .ctors 00000008 10000028 10000028 00010028 2**2 CONTENTS, ALLOC, LOAD, DATA 18 .dtors 00000008 10000030 10000030 00010030 2**2 CONTENTS, ALLOC, LOAD, DATA 19 .jcr 00000004 10000038 10000038 00010038 2**2 CONTENTS, ALLOC, LOAD, DATA 20 .got 00000040 10000040 10000040 00010040 2**4 CONTENTS, ALLOC, LOAD, DATA 21 .sdata 00000004 10000080 10000080 00010080 2**2 CONTENTS, ALLOC, LOAD, DATA 22 .sbss 00000000 10000084 10000084 00010090 2**0 ALLOC 23 .bss 00000014 10000090 10000090 00010090 2**4 ALLOC 24 .comment 000000c2 00000000 00000000 00010090 2**0 CONTENTS, READONLY 25 .pdr 00000080 00000000 00000000 00010154 2**2 CONTENTS, READONLY 26 .mdebug.abi32 00000000 00000000 00000000 000101d4 2**0 CONTENTS, READONLY >> >> Thanks! >> >> Warner -- Aleksandr Rybalko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100203171930.ed680ebe.ray>