gcc string relocation

Petrik Gergely spee at pluto.shacknet.nu
Mon Apr 19 08:51:27 CEST 2004


udv!

most, hogy kiderult, hogy mitol nem mukodott a bootloader, meg
kene csinalnom, hogy a debug stringek a bootloader moge
kereuljenek, es ne a flash elejere. ezt probaltam:

bl.h:
-----
#define STRING_SECTION __attribute__ ((section(.bl_string)))

static char * valami STRING_SECTION;


bl.c:
-----
static char * valami = "[BL] most_elszallok";

ezutan a linkernek megadtam paramterben, hogy hova keruljon a
bl_string szekcio, de nem tette oda, hanem a stringek maradtak a
flash elejen levo kod mogott (ugyanazt csinaltam, mint a
.bootloader szekcional, azt jo helyre teszi). mi lehet a hiba?

thx!
--
G




More information about the Elektro mailing list