bthnycl / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
0 stars 0 forks source link

ELF - Program Header - first offset is 0 #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. ../tinyos-2.x/apps/BaseStation$ make telosb
2. ../tinyos-2.x/apps/BaseStation/build/telosb$ readelf -all main.exe 

...

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x000000 0x00003f6c 0x00003f6c 0x03924 0x03924 R E 0x1
  LOAD           0x003924 0x00001100 0x00007890 0x0002e 0x00719 RW  0x1
  LOAD           0x003952 0x0000ffe0 0x0000ffe0 0x00020 0x00020 R E 0x1

...

What is the expected output? What do you see instead?
The first offset should be 0x000094 (not zero) w.r.t section ".text".

What version of the product are you using? On what operating system?
tinyos-2.x by SVN, latest version of msp430-tinyos, Ubuntu 12.04 lts
(http://docs.tinyos.net/tinywiki/index.php/Installing_from_SVN/GIT)

Please provide any additional information below.
I rewrote tos-set-symbols in Java.
Now, I want to produce an iHex file by program headers. 

Original issue reported on code.google.com by mailtoth...@gmail.com on 13 Jul 2012 at 7:05