public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] __attribute aligned and objcopy
@ 2003-09-25 10:37 Øyvind Harboe
  2003-09-25 10:59 ` Gary Thomas
  0 siblings, 1 reply; 3+ messages in thread
From: Øyvind Harboe @ 2003-09-25 10:37 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-25 13:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-25 10:37 [ECOS] __attribute aligned and objcopy Øyvind Harboe
2003-09-25 10:59 ` Gary Thomas
2003-09-25 13:51   ` Øyvind Harboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).