Hello,
recently i tried to remove section form elf file, because it is not
needed, but i got following error:
msp430-objcopy -v -R .factorydefaults uir.elf
copy from `uir.elf' [elf32-msp430] to `sta8lyIZ' [elf32-msp430]
BFD: uir.elf: warning: Empty loadable segment detected, is this
intentional ?
BFD: sta8lyIZ: section .noinit lma 0xff18 adjusted to 0x10012
BFD: sta8lyIZ: section .vectors lma 0xffe0 adjusted to 0x10014
BFD: sta8lyIZ: section `.vectors' can't be allocated in segment 2
LOAD: .data .bss .noinit .vectors
and after section remove:
uir.elf: file format elf32-msp430
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000ec2 0000f000 0000f000 000000d4 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .rodata 00000054 0000fec2 0000fec2 00000f96 2**1
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 00000002 00000200 0000ff16 00000fea 2**1
CONTENTS, ALLOC, LOAD, DATA
3 .bss 000000fa 00000202 0000ff18 00000fec 2**1
ALLOC
4 .noinit 00000002 000002fc 00010012 00001108 2**1
ALLOC
5 .vectors 00000020 0000ffe0 00010014 0000113c 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
6 .debug_aranges 00000108 00000000 00000000 0000115c 2**2
CONTENTS, READONLY, DEBUGGING
7 .debug_info 0000136c 00000000 00000000 00001264 2**0
CONTENTS, READONLY, DEBUGGING
8 .debug_abbrev 00000851 00000000 00000000 000025d0 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_line 00000964 00000000 00000000 00002e21 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_frame 000002d8 00000000 00000000 00003786 2**1
CONTENTS, READONLY, DEBUGGING
11 .debug_str 00000562 00000000 00000000 00003a5e 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_loc 0000086e 00000000 00000000 00003fc0 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_ranges 0000002c 00000000 00000000 0000482e 2**0
CONTENTS, READONLY, DEBUGGING
before remove:
majkls@majkls-nb:~/c_projekty/multimetr/uir$ msp430-objdump -h uir.elf
uir.elf: file format elf32-msp430
Sections:
Idx Name Size VMA LMA File off Algn
0 .factorydefaults 00000001 00001040 00001040 000000d4 2**0
CONTENTS, ALLOC, LOAD, DATA
1 .text 00000ec2 0000f000 0000f000 000000d6 2**1
CONTENTS, ALLOC, LOAD, READONLY, CODE
2 .rodata 00000054 0000fec2 0000fec2 00000f98 2**1
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .data 00000002 00000200 0000ff16 00000fec 2**1
CONTENTS, ALLOC, LOAD, DATA
4 .bss 000000fa 00000202 0000ff18 00000fee 2**1
ALLOC
5 .noinit 00000002 000002fc 0000ff18 00000fee 2**1
ALLOC
6 .vectors 00000020 0000ffe0 0000ffe0 00000fee 2**0
CONTENTS, ALLOC, LOAD, READONLY, CODE
7 .debug_aranges 00000108 00000000 00000000 00001010 2**2
CONTENTS, READONLY, DEBUGGING
8 .debug_info 0000136c 00000000 00000000 00001118 2**0
CONTENTS, READONLY, DEBUGGING
9 .debug_abbrev 00000851 00000000 00000000 00002484 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_line 00000964 00000000 00000000 00002cd5 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_frame 000002d8 00000000 00000000 0000363a 2**1
CONTENTS, READONLY, DEBUGGING
12 .debug_str 00000562 00000000 00000000 00003912 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_loc 0000086e 00000000 00000000 00003e74 2**0
CONTENTS, READONLY, DEBUGGING
14 .debug_ranges 0000002c 00000000 00000000 000046e2 2**0
CONTENTS, READONLY, DEBUGGING
Is there any idea what i am doing wrong?
Thanks
Miloslav
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Mspgcc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mspgcc-users