[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Missing Section
From: |
Gre7g Luterman |
Subject: |
[avr-gcc-list] Missing Section |
Date: |
Wed, 3 Oct 2007 13:18:27 -0700 (PDT) |
Can anyone tell me what I'm doing wrong? I'm creating
a .hex file with avr-objcopy.exe (like I've always
done in the past), but one of my sections is
disappearing.
>From cygwin, I can type:
$ avr-objdump.exe -V
GNU objdump 2.17 + coff-avr-patch (20050630)
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it
under the terms of the GNU General Public License.
This program has absolutely no warranty.
$ avr-objcopy.exe -V
GNU objcopy 2.17 + coff-avr-patch (20050630)
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it
under the terms of the GNU General Public License.
This program has absolutely no warranty.
$ avr-objdump.exe -dj .update RIO-15C/temp1.elf |less
RIO-15C/temp1.elf: file format elf32-avr
Disassembly of section .update:
00001e40 <UpdateFlash>:
1e40: f8 94 cli
1e42: 08 e1 ldi r16, 0x18
; 24
1e44: 01 bd out 0x21, r16
; 33
1e46: 00 e0 ldi r16, 0x00
; 0
<snipped>
So there is obviously code at 0x1E40, as there should
be, but when I create my .hex file:
$ avr-objcopy.exe -O ihex -R .eeprom RIO-15C/temp1.elf
temp.hex
$ tail temp.hex
:101D900080917100909172006D3E91F47A3D81F4D2
:101DA0008B3E71F49E3F61F44FEF44AF45AF46AFB9
:101DB00047AF81CE803B20F48A5A880F805C8FCE5B
:101DC00082E090E0089515D001921A94E1F7089509
:101DD000E199FECFBFBBAEBB0DBA11960FB6F8941A
:101DE000E29AE19A0FBE08950190F2DF1A94E1F7AA
:101DF0000895E199FECFBFBBAEBBE09A11960DB23C
:021E0000089543
:041E0200FF0F983AFC
:00000001FF
There's the end of my .text section, but my .update
section which starts at 0x1E40 is nowhere to be found.
I've looked through the file with a text editor (in
case it was placed out of order), but it's simply not
there.
I've even tried removing the "-R .eeprom" in case my
.update section had merged under the .eeprom section
somehow, but that didn't do it. If I do that, I can
see the .eeprom section added, but no .update.
Pretty weird, huh? Check this out:
$ avr-objcopy.exe -j .update RIO-15C/temp1.elf
temp.hex
BFD: RIO-15C/temp1.elf: warning: Empty loadable
segment detected, is this intentional ?
BFD: RIO-15C/temp1.elf: warning: Empty loadable
segment detected, is this intentional ?
BFD: RIO-15C/temp1.elf: warning: Empty loadable
segment detected, is this intentional ?
BFD: RIO-15C/temp1.elf: warning: Empty loadable
segment detected, is this intentional ?
avr-objdump.exe can see my .update section, but
avr-objcopy.exe can't.
Please help!
Gre7g
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- [avr-gcc-list] Missing Section,
Gre7g Luterman <=