From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27750 invoked by alias); 25 Sep 2003 10:37:36 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 27740 invoked from network); 25 Sep 2003 10:37:35 -0000 Received: from unknown (HELO draco.netpower.no) (212.33.133.34) by sources.redhat.com with SMTP; 25 Sep 2003 10:37:35 -0000 Received: from lair ([212.33.152.109]) by draco.netpower.no (8.12.10/8.12.8) with ESMTP id h8PAdiXw032285 for ; Thu, 25 Sep 2003 12:39:45 +0200 From: =?iso-8859-1?Q?=D8yvind_Harboe?= To: Date: Thu, 25 Sep 2003 10:37:00 -0000 Message-ID: <004001c38351$080aa1d0$73dea8c0@lair> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: [ECOS] __attribute aligned and objcopy X-SW-Source: 2003-09/txt/msg00458.txt.bz2 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=3D.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 =3D mount( address, "rom", "romfs" ); =09 =D8yvind -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss