Export to GitHub

tinyos-msp430 - issue #10

ELF - Program Header - first offset is 0


Posted on Jul 11, 2012 by Helpful Bear

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 0x000092 (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.

Comment #1

Posted on Jul 12, 2012 by Helpful Bear

Sorry, the first offset should be 0x000094 and not 0x000092. And I think the issue should be posted here: http://code.google.com/p/tinyos-main/

Comment #2

Posted on Feb 3, 2013 by Happy Camel

(No comment was entered for this change.)

Status: WontFix

Labels:
Type-Defect Priority-Medium