| ysionneau | in a linker script, when you declare memory regions with the "MEMORY" keyword, the ORIGIN= parameter indicates the LMA, right? | 06:14 |
|---|---|---|
| ysionneau | means physical address | 06:15 |
| ysionneau | I've got the error : /Users/fallen/dev/NetBSD/obj/tooldir.Darwin-10.8.0-i386/bin/lm32--netbsd-ld: address 0xc00eae1c of netbsd section `.text' is not within region `sdram' | 06:16 |
| ysionneau | because I put : MEMORY { sdram : ORIGIN = 0x40000000, LENGTH = 0x8000000 } SECTIONS { .text 0xc0000000 : AT ( 0x40000000 ) { .... } } | 06:17 |
| ysionneau | err, I mean I put : MEMORY { sdram : ORIGIN = 0x40000000, LENGTH = 0x8000000 } SECTIONS { .text 0xc0000000 : AT ( 0x40000000 ) { .... } > sdram } | 06:18 |
| ysionneau | but the 0xc00000 next to the section name is supposed to be a VMA ... not a LMA | 06:19 |
| ysionneau | if I remove completely the notion of MEMORY (and the "> sdram") it almost links, it just complains about a mysterious error: no memory region specified for loadable section `link_set_bufq_strats' | 06:25 |
| ysionneau | which I cannot find in the entire source code (or .o files) | 06:26 |
| ysionneau | gotta leave for work | 06:29 |
| ysionneau | bbl | 06:29 |
| ysionneau | if someone wants to have a look at my linker issue: http://pastebin.com/Ukp0q4qV | 20:54 |
| ysionneau | I posted the error, the linker script I used and a few command outputs | 20:54 |
| ysionneau | I basically end up with a section that I don't know where it comes from | 20:55 |
| ysionneau | and it makes the link fail... | 20:55 |
| ysionneau | so this kind of symbol might come from macro generated stuff | 21:36 |
| ysionneau | but it's not just symbols, it's a section as well | 21:36 |
| ysionneau | ah, got it | 21:38 |
| ysionneau | #define __link_set_make_entry(set, sym) \ | 21:38 |
| ysionneau | static void const * const __link_set_##set##_sym_##sym \ | 21:38 |
| ysionneau | __section("link_set_" #set) __used = (const void *)&sym | 21:38 |
| ysionneau | this kind of stuff is used a bit in the kernel | 21:38 |
| ysionneau | it generates sections... | 21:38 |
| ysionneau | so now I put the link_set_* sections with the .rodata stuff | 21:43 |
| ysionneau | now it does not complain anymore about this kind of sections and overlaps | 21:43 |
| ysionneau | but it complains about a whole bunch of undefined symbols | 21:43 |
| ysionneau | like __start_link_set_dkwedge_methods and __stop_link_set_dkwedge_methods | 21:44 |
| ysionneau | I guess it's just markers for dynamic regions | 21:45 |
| ysionneau | but weird that nothing defines their addresses | 21:45 |
| Action: ysionneau calling it a day | 21:45 | |
| ysionneau | gn8 | 21:45 |
| --- Wed Oct 9 2013 | 00:00 | |
Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!