[ECOS] __attribute aligned and objcopy
Øyvind Harboe
oyvind.harboe@zylin.com
Thu Sep 25 10:37:00 GMT 2003
This is driving me nuts, and I can't seem to find a solution
to this on the net.
I have a romfs image that I try to convert to a .o file using:
# how do I add a __attribute((aligned(4))__ to objcopy?
arm-elf-objcopy -B arm -I binary -O elf32-littlearm --rename-section
.data=.rodata1 $*.rawdata $(OUTPUT)/$*_raw.o
This is used to mount a ROMFS:
extern "C"
{
extern const cyg_uint8 _binary___rom_rawdata_start[];
}
// this is not aligned to 4 bytes, and hence it does not work
sprintf( address, "%p", _binary___rom_rawdata_start);
err = mount( address, "rom", "romfs" );
Øyvind
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list