[En-Nut-Discussion] bootloader patches submitted for approval

Dave ethernut at wormfood.org
Thu May 26 16:54:55 CEST 2005


On Thu, 2005-05-26 at 16:24 +0200, Harald Kipp wrote:
> Unfortunately linking fails with
> 
> ld.exe: address 0x20028 of eboot.elf section .text is not within region text
> 
> using
> 
> GNU ld version 2.14 20030612 + coff-avr-patch (20030831)
> avr-gcc (GCC) 3.3.1
> 
> Harald

Hi Harald,

Thanks for looking into this. I'm not sure why yours would produce a
larger binary than mine. I'm using avr-gcc 3.4.3 and avr-ld 2.15 from
the debian unstable branch. I obvously would not have submitted the
patch if it didn't work for me. Where do we go from here to fix this
problem? I'm more than happy to help out in whatever way I can, just let
me know what I can do to help get this issue resolved. Attached is my
hex file, so you, or anyone else can test it out, or play around with
it.

-Dave


$ make
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=eboot.lst  -I. eboot.c -o eboot.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=tftp.lst  -I. tftp.c -o tftp.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=dhcp.lst  -I. dhcp.c -o dhcp.o
dhcp.c: In function `DhcpSetOption':
dhcp.c:143: warning: use of cast expressions as lvalues is deprecated
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=udp.lst  -I. udp.c -o udp.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=ip.lst  -I. ip.c -o ip.o
ip.c: In function `IpChkSum':
ip.c:99: warning: use of cast expressions as lvalues is deprecated
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=arp.lst  -I. arp.c -o arp.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=ether.lst  -I. ether.c -o ether.o
avr-gcc -c -mmcu=atmega128 -Os -Wall -Wstrict-prototypes
-Wa,-ahlms=util.lst  -I. util.c -o util.o
avr-gcc -x assembler-with-cpp -c -Wa,-gstabs,-ahlms=flash.lst
-mmcu=atmega128 -I. flash.s -o flash.o
avr-gcc eboot.o tftp.o dhcp.o udp.o ip.o arp.o ether.o util.o flash.o
-mmcu=atmega128 -Wl,-Map=eboot.map,--cref,--defsym,__stack=0x10FF
-nostartfiles -nodefaultlibs -Ttext=0x1F000 -o eboot.elf
avr-objcopy -O ihex eboot.elf eboot.hex
rm eboot.elf
-------------- next part --------------
:020000021000EC
:10F00000CFEFD0E1DEBFCDBFF894112487E089B9FE
:10F0100088E18AB982ED9FEF9C01442737FD409536
:10F02000542FA0E0B1E081E0A630B80748F44BBF10
:10F03000F90187918D932F5F3F4F4F4F5F4FF3CF74
:10F04000A6E0B1E086E0AE36B80710F41D92FACF24
:10F050000E9475FD0E9403FA892B31F480916403AC
:10F06000882311F00E948BF80C940000FFCFCF9200
:10F07000DF92EF92FF920F931F93CF93DF937C0168
:10F080008A016B014150514010F000E011E0EFEFB8
:10F09000EE16F10449F040F0F0EFEF16F1E0FF0654
:10F0A00088F581E08BBF01C01BBEFE2CEE2463E01F
:10F0B000C7010E94DBFF61E180E090E00E94DBFF7E
:10F0C000C0E0D0E0C017D10748F4F601619171911A
:10F0D0006F01CE010E94DDFF2296F4CFCF3FD10514
:10F0E00009F038F46FEF7FEFCE010E94DDFF22962A
:10F0F000F5CF65E0C7010E94DBFF61E180E090E0B1
:10F100000E94DBFFDF91CF911F910F91FF90EF9055
:10F11000DF90CF9008958F929F92AF92BF92CF923F
:10F12000DF92EF92FF920F931F93CF93DF93C0E094
:10F13000D0E055E4852E912C7E0181E090E0082EF0
:10F14000892F902D909313048093120442E0A42EF3
:10F15000B12CE4E1F4E0A4E6B3E02D91219308940E
:10F16000A11CB11C2223C9F78FE6819383E681930A
:10F1700094E7919385E681939193208386E090E0D4
:10F18000A80EB91EDD2480910A0190910B01A09177
:10F190000C01B0910D01850120E034E0A401BC0117
:10F1A000CD010E9405FB97FD09C068E873E180E08E
:10F1B00094E00E94E1FAEC01049724F4D39492E0E5
:10F1C0009D1508F7C430D1050CF430C0809138018A
:10F1D00090913901082E892F902D039739F5E1146C
:10F1E000F10499F48090300190903101082C892C21
:10F1F000902C84E090E0082E892F902D909313049A
:10F200008093120434E0A32EB12C80913A019091A6
:10F210003B01082E892F902D67010894C11CD11C39
:10F220008C159D0531F0E114F10441F58FEF9FEF4E
:10F230003CC0C530D105CCF0CE0104978701000F4A
:10F24000111FAC016CE371E0C8010E9437F881E046
:10F25000C530D80754F0CE0184509140AC016CE326
:10F2600072E0C80101960E9437F87601C601082EA7
:10F27000892F902D909315048093140492E0C4304C
:10F28000D9070CF07FCF80910A0190910B01A091DA
:10F290000C01B0910D01850120E034E0A401BC0116
:10F2A000CD010E9405FB80E090E0DF91CF911F919E
:10F2B0000F91FF90EF90DF90CF90BF90AF909F9015
:10F2C0008F900895CF93DF93982FE8E2F2E080814A
:10F2D0008823C1F08F3FC1F0891781F481818417A1
:10F2E00008F4482F442339F0EB01DF0112968D9189
:10F2F00089934150E1F78181992708C03196808137
:10F30000E80FF11D3196E3CF80E090E0DF91CF91DF
:10F310000895FC01DA016193219321502F3F19F0E8
:10F320008D918193FACF8FEF8083CF010895CF9293
:10F33000DF92EF92FF920F931F93CF93DF93CDB79E
:10F34000DEB721970FB6F894DEBF0FBECDBF6C01BC
:10F35000E62EFF24860124E430E043E450E06FEF22
:10F360007FEF8FEF9FEF0E9405FB99234CF068E839
:10F3700073E184E490E00E94E1FA8C0197FF03C0FE
:10F380008FEF9FEF31C0892B09F120913C01309123
:10F390003D0140913E0150913F01809116049091B2
:10F3A0001704A0911804B0911904281739074A07C7
:10F3B0005B0761F441E0BE016F5F7F4F85E30E9410
:10F3C00062F9813019F489818E1569F000E010E04E
:10F3D00068EE73E080E090E00E94C8FFF39482E062
:10F3E0008F1508F0B7CFC80121960FB6F894DEBF8D
:10F3F0000FBECDBFDF91CF911F910F91FF90EF9086
:10F40000DF90CF9008951F93CF93DF93CDB7DEB7F2
:10F4100021970FB6F894DEBF0FBECDBF21E0209339
:10F42000120481E092E0A3E0B4E08093160490938C
:10F430001704A0931804B093190480E890E0909307
:10F440001D0480931C042093130486E0809314040D
:10F4500019829981AEE2B4E0E0E0F1E081918D9310
:10F46000892F8F5F982F8630C8F383E692E8A3E553
:10F47000B3E68093FE049093FF04A0930005B0933D
:10F48000010511E01983212FAE014F5F5F4F65E346
:10F4900082E095E00E9489F962E084EF90E00E94AA
:10F4A00097F9181619062CF544E064EE73E086E32C
:10F4B0000E9462F983E08983212FAE014F5F5F4F85
:10F4C00065E382E095E00E9489F924E048E451E098
:10F4D00062E30E9489F924E044EE53E066E30E946F
:10F4E00089F965E080E091E00E9497F91816190605
:10F4F0001CF08FEF9FEF5BC0809148019091490114
:10F50000A0914A01B0914B018093060190930701AD
:10F51000A0930801B093090180914C0190914D0195
:10F52000A0914E01B0914F0180930A0190930B017D
:10F53000A0930C01B0930D010097A105B10581F4D2
:10F540008091280190912901A0912A01B0912B016D
:10F5500080930A0190930B01A0930C01B0930D01CD
:10F56000E4EAF1E019828091A401882361F0998195
:10F57000A4E6B3E081918D939F5F99838081882376
:10F5800011F09F37B8F38981E82FFF27EC59FC4F22
:10F59000108244E060E673E081E00E9462F944E09A
:10F5A00064EE73E086E30E9462F980E090E02196C9
:10F5B0000FB6F894DEBF0FBECDBFDF91CF911F9184
:10F5C00008950F931F93CF93DF938C01EB01BE013E
:10F5D00081E10E9434FB1816190694F480913201DF
:10F5E00090913301082E892F902D0817190779F76C
:10F5F0008091340190913501082E892F902D089724
:10F60000DF91CF911F910F910895CF92DF92EF92EA
:10F61000FF920F931F936B017C01C9019801082E83
:10F62000892F902D90930B0480930A04042E452F6C
:10F63000502D50930D0440930C04C8010896082ED9
:10F64000892F902D90930F0480930E04285F3F4FD5
:10F6500041E1C701B6010E94A0FB1F910F91FF90ED
:10F66000EF90DF90CF9008951F93CF93DF93182FE3
:10F67000EB01BE0188E090E00E94CFFEBC011816AD
:10F6800019060CF058C020911C01822F807F803415
:10F6900081F78091220190912301082E892F902DCE
:10F6A0009F73892B31F780912501811711F76091A4
:10F6B0001E0170911F01062E672F702D2F70822F53
:10F6C0009927880F991F880F991F681B790B209124
:10F6D0002C0130912D0140912E0150912F012F3F8F
:10F6E0008FEF38078FEF48078FEF580721F1809190
:10F6F000060190910701A0910801B09109010097BE
:10F70000A105B10509F4B5CF281739074A075B07EA
:10F7100091F08091600390916103A0916203B09198
:10F720006303282B392B4A2B5B2B2F5F3F4F4F4F07
:10F730005F4F09F09ECFCB01DF91CF911F910895CC
:10F740008F929F92BF92CF92DF92EF92FF920F9390
:10F750001F93CF93DF93CDB7DEB726970FB6F894FC
:10F76000DEBF0FBECDBF7B018C01B42E690176EFE9
:10F77000872E73E0972EAE014F5F5F4FC801B70130
:10F780000E9448FC9C01892B19F08FEF9FEF6EC0FF
:10F7900085E48093F60384E190E0C80ED91EC6018B
:10F7A000082E892F902D9093F9038093F80380E41D
:10F7B0008093FE03B092FF03E0920604F0920704E8
:10F7C00000930804109309048091060190910701A9
:10F7D000A0910801B0910901809302049093030461
:10F7E000A0930404B09305048091FA039091FB0365
:10F7F00001969093FB038093FA03309301042093C6
:10F800000004F40164E170E020E030E040E050E00A
:10F810006230710558F081919191AA27BB27280F7A
:10F82000391F4A1F5B1F62507040F2CF672B29F0CF
:10F830008081280F311D411D511DCA01AA27BB27F8
:10F84000BC01892B31F0620F731F9B0144275527A0
:10F85000F4CFC90180959095F40182879387A60122
:10F8600068E070E0CE0101960E943EFE26960FB63B
:10F87000F894DEBF0FBECDBFDF91CF911F910F91E6
:10F88000FF90EF90DF90CF90BF909F908F90089562
:10F89000AF92BF92DF92EF92FF920F931F93CF939D
:10F8A000DF937B018C015A01C8E4D6E08FEFE816A4
:10F8B0008FEFF8068FEF08078FEF180741F48FEFEF
:10F8C000FA0195E08193915097FFFCCFC1C08091E0
:10F8D000640690916506A0916606B09167068E1544
:10F8E0009F05A007B10709F49AC081E090E0082EB7
:10F8F000892F902D909349068093480688E090E0E8
:10F9000090934B0680934A0686E080934C0684E0F1
:10F9100080934D0681E090E0082E892F902D9093E2
:10F920004F0680934E06DE011896E0E0F1E095E088
:10F9300081918D93915097FFFBCF8091060190911B
:10F940000701A0910801B09109018E879F87A88BBC
:10F95000B98B8FEFEAE5F6E095E08193915097FF40
:10F96000FCCFE88EF98E0A8F1B8FDD244CE150E02E
:10F9700068E076E080E090E00E943EFE99230CF47F
:10F980004EC068EE73E088E096E00E94CFFE181645
:10F9900019060CF03DC0CCE1D1E02091340130914A
:10F9A00035014091360150913701809106019091C7
:10F9B0000701A0910801B0910901281739074A07EA
:10F9C0005B0721F58091220190912301082E892F58
:10F9D000902D0297D9F480912A0190912B01A0914A
:10F9E0002C01B0912D018093640690936506A0933D
:10F9F0006606B0936706A8E6B6E0FE01389695E085
:10FA000081918D93915097FFFBCF09C080E090E0EA
:10FA1000D394892B21F489E08D1508F0A7CF80912C
:10FA2000640690916506A0916606B09167068E15F2
:10FA30009F05A007B10719F08FEF9FEF0BC0F501ED
:10FA4000A8E6B6E095E08D918193915097FFFBCFAA
:10FA500080E090E0DF91CF911F910F91FF90EF90A8
:10FA6000DF90BF90AF9008952091600630916106BD
:10FA700040916206509163068091060190910701C2
:10FA8000A0910801B0910901281739074A075B07BF
:10FA900019F580914E0690914F06082E892F902DD2
:10FAA0000297D1F48091560690915706A09158067E
:10FAB000B09159068093640690936506A0936606FC
:10FAC000B0936706A8E6B6E0E0E5F6E095E0819140
:10FAD0008D93915097FFFBCF0895E199FECF9FBB87
:10FAE0008EBBE09A8DB3992708950F931F93CF9300
:10FAF0008DE490E00E946DFD809303018EE490E020
:10FB00000E946DFD809304018FE490E00E946DFDE2
:10FB10008093050110EC15BF00911F8365E070E034
:10FB200080E090E00E94C8FF00931F8368EE73E0BE
:10FB300080E090E00E94C8FF15BB14BB64E170E058
:10FB400080E090E00E94C8FF81EE8093008380E413
:10FB50008093018385B78F7785BF80E090E09D9B80
:10FB600005C0019639F09D99FCCF04C0019611F0B3
:10FB70009D9BFCCF892B89F785B7806885BF15BA17
:10FB800014BAC0910083C132E1F710920F830FEFD6
:10FB90000093078381EE8093008380EC8093018340
:10FBA0001092068310E2109305831092018368EC93
:10FBB00070E080E090E00E94C8FFC093008388E47A
:10FBC00080930E8310920A8310920B8310930C8300
:10FBD00082E080930D8380E4809304838FE580939B
:10FBE00003839CE49093018380E6809302830093D7
:10FBF000078381E6809300838091000180930183D5
:10FC0000809101018093028380910201809303839C
:10FC10008091030180930483809104018093058384
:10FC200080910501809306831092088310920983C6
:10FC300010920A8310920B8310920C8310920D8302
:10FC400010920E8310920F8390930783C0930083CA
:10FC500084E080930C830093078310920F8382E2E9
:10FC60008093008310920D8368EE73E080E090E053
:10FC70000E94C8FFCF911F910F9108950F931F937A
:10FC8000CF93DF939C0186E06830780719F40AE38C
:10FC900016E002C008EE13E0D801E8012696E0E085
:10FCA000F1E08191899391E0E530F907D1F3C8F350
:10FCB0002115310559F0FD01E9019D012B5F3F4FF1
:10FCC000899181932E173F07D8F708C02FEFFD01C8
:10FCD000CD01059621938E179F07E0F7FD016487FC
:10FCE0007587425F5F4F4C33510518F46CE370E049
:10FCF00001C0BA0182E28093008360930A83E72FF8
:10FD0000FF27E0930B831092088380E4809309839C
:10FD100082E1809300834115510549F09A01D80191
:10FD20008D918D018093108321503040C1F746178B
:10FD3000570748F4CB01841B950B9C01109210834C
:10FD400021503040D9F782E28093008320E030E0F8
:10FD50008091078386FD05C02F5F3F4F2531310518
:10FD6000B8F380E48093078360930583E093068370
:10FD70008093048386E28093008380910083992797
:10FD800096958795969587959C012170307080FD9A
:10FD9000F4CFC901DF91CF911F910F910895AF92D8
:10FDA000BF92DF92EF92FF920F931F93CF93DF9357
:10FDB000CDB7DEB724970FB6F894DEBF0FBECDBF28
:10FDC0005C017B0100E010E0DD24672B09F4CFC06B
:10FDD00021E0E114F10491F0D09007838D2D992753
:10FDE00082FF03C08FEF9FEFC3C080FD07C02223B7
:10FDF00019F40894E108F1082F5FEBCFD0FC03C0A1
:10FE0000D0920783B4C082E68093008390910783E9
:10FE100082E280930083409103834F5F403608F075
:10FE20004CE4491719F4D09207839AC084E0809378
:10FE30000A8310920B831092088340930983DE019A
:10FE40001196FD018AE08093008323E030E08091E9
:10FE5000108381932150304037FFF9CF82E28093A5
:10FE6000008320E030E08091078386FD05C02F5F8E
:10FE70003F4F25313105B8F380E480930783FD01BE
:10FE800022813381C90180549040835B954018F0F2
:10FE90000E9475FD65C0898199278F7090700197C8
:10FEA00009F044C089010450104000930A83812F57
:10FEB000992780930B8384E0809308834093098380
:10FEC0008AE080930083EEE0F1E0A80122E00335B0
:10FED000120710F042E552E020E030E02417350729
:10FEE00040F49A0180911083819321503040D1F7E2
:10FEF0009A012017310748F4C801821B930B9C011B
:10FF00008091108321503040D9F782E280930083A2
:10FF100020E030E08091078386FD05C02F5F3F4FD2
:10FF200025313105B8F380E480930783FD01818199
:10FF3000815081838C3410F48FE58183FD018181B0
:10FF40008093038380911A0190911B018A159B0570
:10FF500039F08850964011F40E9434FD00E010E022
:10FF6000E114F10421F00115110509F431CFC801A4
:10FF700024960FB6F894DEBF0FBECDBFDF91CF91B0
:10FF80001F910F91FF90EF90DF90BF90AF90089579
:10FF90002BE0660F771F881F991F2A95D1F7161639
:10FFA00017061806190634F40000615070408040AE
:10FFB0009040D1F70895FC0103C0FC010B0161E002
:10FFC00060936800E8956091680060FDFCCF1124A3
:02FFD000089592
:06FFD2000006980000008B
:040000031000F000F9
:00000001FF


More information about the En-Nut-Discussion mailing list