Commit Graph

32 Commits

Author SHA1 Message Date
bg-
44f81a5625 * s/_DEF_/_/g
* Value is not const and of unknown type.
2007-01-30 18:04:59 +00:00
adamdunkels
83b348631f Changed the generation of symbols to the mknmlist script. Now symbols.h is not automatically generated so we can use it as a normal include file and remove symbols-def.h. 2007-01-24 16:11:48 +00:00
bg-
a88f797455 * Constness and voidness. 2007-01-23 12:29:50 +00:00
bg-
f8d7943735 * Switch from linear search to binary ditto.
* Symbol names is "const char *" but symbol values are "void *" (not
  "const char *").
2007-01-12 13:55:04 +00:00
bg-
f888f4784c * Fix an miscalculation.
* Changing naming to be more explicit about file offsets.
2007-01-12 13:36:27 +00:00
bg-
e4305295f7 * First stab at loadable contiki modules in plural form. 2007-01-05 18:00:55 +00:00
bg-
c367a49606 * Typedef for scratch buffer. 2007-01-05 17:47:53 +00:00
barner
c4df71bb7e - AVR specific implementation of (linear) symbol table lookup, that uses the
necessary functions to load symbols from flash ROM.
- Implementing binary search is on my TODO list.
2006-12-22 17:12:31 +00:00
barner
54ac97990d - Fix / enhence AVR specific part of the ELF relocator. Some relocation types
are still unsupported and will write warings on the second serial port.

- Fix elfloader_arch_write_rom (), which has to reside in a special bootloader
  section of flash rom. The code is heavly inspired from avr-libc's documentation.

- Prelimiary implementation of elfloader_arch_allocate_rom: Code is
  flashed to fixed address 0x8000. Note that on the AVR, flash rom is adressed
  word (16bit)-wise, not byte wise!

- Preliminary implementation of elfloader_arch_allocate_ram using the mmem
  module. Current code does not free the memory.
2006-12-22 17:10:54 +00:00
bg-
98cea83de5 * Include loader/symbols-def.h and use extern declarations. 2006-12-20 14:41:28 +00:00
bg-
d6b06f0661 * Add extern declarations. 2006-12-20 14:36:28 +00:00
bg-
3c9fe59106 * Typo in comment.
* More info in printfs.
2006-12-20 13:43:47 +00:00
bg-
e3a501a8c1 * Resurrect traditional elfloader interface. 2006-12-20 13:38:33 +00:00
adamdunkels
946e11a0fc Added optional binary search 2006-12-19 09:31:37 +00:00
adamdunkels
419c5f3c17 Symbol is const 2006-12-19 09:30:57 +00:00
fros4943
1e23eb29ba added support for elf32_rel relocation entries (earlier only elf32_rela)
added support for rodata section

(x86 compability)
2006-12-18 15:35:16 +00:00
fros4943
98f8d160b3 removed symbols.h (now symbols-def.h)
symbols.h should be autogenerated at compile time
2006-12-18 15:28:49 +00:00
fros4943
1e254866d5 updated reference to symbols.h 2006-12-18 15:27:18 +00:00
fros4943
71940f287f new symbols definition header.
should be included from autogenerated symbols.h
2006-12-18 15:23:04 +00:00
fros4943
060225a97a added parameter to relocate method
+ renamed write_text() to write_rom()
+ added parameter to write_rom()
2006-12-18 14:54:04 +00:00
fros4943
ea0e2c0f7d moved elfloader-tmp.h -> elfloader.h 2006-12-18 14:45:49 +00:00
fros4943
6d93716fba removed old -tmp header 2006-12-18 14:39:55 +00:00
adamdunkels
5ab475498a Removed old elfloader.h and replaced with the current code (previously in elfloader-tmp.h) 2006-12-18 12:11:15 +00:00
adamdunkels
70170b65b6 Removed old elfloader.c and replaced with the current code (previously in elfloader-tmp.c) 2006-12-18 11:55:42 +00:00
adamdunkels
5d3baef0d2 Removed old elfloader.c and replaced with the current code (previously in elfloader-tmp.c) 2006-12-18 11:45:47 +00:00
bg-
4e62a35e83 * Backwards compatible with elfloader.c but uses the new Contiki
link-editor. Taken together cle and elfloader_compat requires less
  ROM and RAM than the old version.
2006-12-01 15:15:08 +00:00
bg-
4f592bfc88 Small and modular dynamic link-editor. 2006-12-01 15:12:27 +00:00
bg-
0191c11595 Fix constness problems. 2006-12-01 15:05:20 +00:00
fros4943
b8bcf2ab59 x86 elf loader implementation (only 2 common types).
depends on a few not-yet-commited files
2006-10-25 10:53:31 +00:00
adamdunkels
17c32fa33e Updated documentation 2006-10-09 11:13:25 +00:00
adamdunkels
7bfd457bbc Fixed bug where instruction to be relocated was fetched from an incorrect location 2006-09-01 07:10:01 +00:00
adamdunkels
c9e808d638 Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00