Re: Problematic __attribute__((section(" "))) and gcc alignment

2007-07-22 Thread Denis Vlasenko
On Thursday 21 June 2007 21:32, Mathieu Desnoyers wrote: > Let's take arch/i386/boot/video.h as an example: > > it defines > > struct card_info { > const char *card_name; > int (*set_mode)(struct mode_info *mode); > int (*probe)(void); > struct mode_info *modes; >

Re: Problematic __attribute__((section(" "))) and gcc alignment

2007-06-22 Thread Mathieu Desnoyers
* Sam Ravnborg ([EMAIL PROTECTED]) wrote: > On Thu, Jun 21, 2007 at 04:32:36PM -0400, Mathieu Desnoyers wrote: > > Hi, > > > > I just realized, working on my marker infrastructure, that a lot of > > __attribute__((section(" "))) should probably come along with an > > aligned() attribute. Since th

Re: Problematic __attribute__((section(" "))) and gcc alignment

2007-06-22 Thread Sam Ravnborg
On Thu, Jun 21, 2007 at 04:32:36PM -0400, Mathieu Desnoyers wrote: > Hi, > > I just realized, working on my marker infrastructure, that a lot of > __attribute__((section(" "))) should probably come along with an > aligned() attribute. Since there are no data structures of size greater > or equal

Problematic __attribute__((section(" "))) and gcc alignment

2007-06-21 Thread Mathieu Desnoyers
Hi, I just realized, working on my marker infrastructure, that a lot of __attribute__((section(" "))) should probably come along with an aligned() attribute. Since there are no data structures of size greater or equal to 32 bytes put in these sections later referred to by __sectionname_start[] an