m68k-coff: Unused memory region included in output file?

Toralf Lund toralf@procaptura.com
Tue Oct 26 15:26:00 GMT 2004


Bill Gatliff wrote:

> Toralf:
>
> BTW, what did you produce that dump with?  hexl-edit in emacs, or 
> something else?

It's hexl-mode, yes. On data produced via objcopy -O binary on the 
original COFF file.

>
> b.g.
>
> Toralf Lund wrote:
>
>> Bill Gatliff wrote:
>>
>>> Toralf:
>>>
>>> What does the stuff that ends up in "reseved" look like?  It could 
>>> be that the newer tools have some new sections that you aren't 
>>> putting anywhere else (they do have more sections than 2.95.x), and 
>>> the linker is just doing a "pick a section, any section"...
>>
>>
>>
>> It starts with the data included below. The rest of it is just 0's. 
>> It looks like it's simply left out if I change "reserved" flags to 
>> "rx", or at least, after I do it, conversion to plain binary will 
>> produce a smaller file.
>>
>> BTW, In order to to the actual link with gcc 3.3.3, I also have to 
>> include
>>
>> __INIT_SECTION__ = . ;
>>
>> somewhere in the section spec. Do you know what it does? (I knew I 
>> had to add it just because I got unresolved symbols.)
>>
>> -- 
>>
>> 00000000: 0000 000e 0000 0000 0100 017c 180c 0f04  ...........|....
>> 00000010: 9801 0000 002c 0000 0016 0001 92ec 0000  .....,..........
>> 00000020: 0026 0400 0000 048e 020c 0e08 0400 0000  .&..............
>> 00000030: 028a 0304 0000 000c 2e04 0400 0000 0a2e  ................
>> 00000040: 0800 0000 0024 0000 0046 0001 9368 0000  .....$...F...h..
>> 00000050: 001a 0400 0000 048e 020c 0e08 0400 0000  ................
>> 00000060: 042e 0404 0000 000c 2e08 0000 0032 0000  .............2..
>> 00000070: 006e 0001 9382 0000 00a2 0400 0000 048e  .n..............
>> 00000080: 020c 0e08 0400 0000 028b 0304 0000 0002  ................
>> 00000090: 8a04 0400 0000 6e2e 0404 0000 001a 2e00  ......n.........
>> 000000a0: 0000 001e 0000 00a4 0001 9424 0000 0010  ...........$....
>> 000000b0: 0400 0000 048e 020c 0e08 0400 0000 042e  ................
>> 000000c0: 0400 0000 001e 0000 00c6 0001 9434 0000  .............4..
>> 000000d0: 001e 0400 0000 048e 020c 0e08 0400 0000  ................
>> 000000e0: 0a2e 0400 0000 0036 0000 00e8 0001 967c  .......6.......|
>> 000000f0: 0000 017c 0400 0000 048e 020c 0e08 0400  ...|............
>> 00000100: 0000 0482 0c83 0b84 0a85 0986 0887 078a  ................
>> 00000110: 068b 058c 048d 0304 0000 0046 2e0c 0000  ...........F....
>> 00000120: 0060 0000 0122 0001 9b02 0000 01e8 0400  .`..."..........
>> 00000130: 0000 048e 020c 0e08 0400 0000 0482 1083  ................
>> 00000140: 0f84 0e85 0d86 0c87 0b8a 0a8b 098c 088d  ................
>> 00000150: 0704 0000 0062 2e04 0400 0000 162e 0804  .....b..........
>> 00000160: 0000 0008 2e10 0400 0000 942e 0804 0000  ................
>> 00000170: 0034 2e10 0400 0000 562e 0c04 0000 0024  .4......V......$
>> 00000180: 2e04 0000 0042 0000 0186 0001 9cea 0000  .....B..........
>> 00000190: 0102 0400 0000 048e 020c 0e08 0400 0000  ................
>> 000001a0: 0482 078a 068b 058c 048d 0304 0000 0042  ...............B
>> 000001b0: 2e08 0400 0000 7c2e 1004 0000 0014 2e04  ......|.........
>> 000001c0: 0400 0000 0c2e 0800 0000 006e 0000 01cc  ...........n....
>> 000001d0: 0001 9dec 0000 0258 0400 0000 048e 020c  .......X........
>> 000001e0: 0e08 0400 0000 0482 1183 1084 0f85 0e86  ................
>> 000001f0: 0d87 0c8a 0b8b 0a8c 098d 0804 0000 002a  ...............*
>> 00000200: 2e08 0400 0000 642e 0c04 0000 003e 2e10  ......d......>..
>> 00000210: 0400 0000 242e 0c04 0000 0096 2e04 0400  ....$...........
>> 00000220: 0000 262e 0c04 0000 0052 2e04 0400 0000  ..&......R......
>> 00000230: 362e 0804 0000 000c 2e00 0000 0036 0000  6............6..
>> 00000240: 023e 0001 a044 0000 00ac 0400 0000 048e  .>...D..........
>>
>>
>> ------
>> Want more information?  See the CrossGCC FAQ, 
>> http://www.objsw.com/CrossGCC/
>> Want to unsubscribe? Send a note to 
>> crossgcc-unsubscribe@sources.redhat.com
>>
>
>


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list