Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1314497

Re: [RFC v1 0/8] x86/init: Linux linker tables

From "H. Peter Anvin" <hpa@zytor.com>
Newsgroups linux.kernel
Subject Re: [RFC v1 0/8] x86/init: Linux linker tables
Date 2016-01-21 21:30 +0100
Message-ID <qTu1I-1V0-11@gated-at.bofh.it> (permalink)
References <qG66R-1Iz-7@gated-at.bofh.it> <qGNvc-4lY-17@gated-at.bofh.it> <qGQt4-6k7-19@gated-at.bofh.it> <qGUQ2-Ms-5@gated-at.bofh.it> <qGV9n-Tm-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/17/15 20:40, H. Peter Anvin wrote:
>>
>> const struct
>> foo__attribute__((used,section(".rodata.tbl.tablename.0"))) tablename[0];
>>
>> const struct
>> foo__attribute__((used,section(".rodata.tbl.tablename.999")))
>> tablename__end[0];
>>

(Over)thinking about this some more, I suggest using the empty string
for the start and "~" for the end.  And, yes, I did check that ~ works
as part of a section name.

Something that confuses me is that gcc seems to give these sections the
"aw" attributes which makes as complain.  This might be a gcc bug.
Worst case we have to use an assembly statement to create these
sections; it isn't a big deal and shouldn't make it any more
architecture-specific.

	-hpa

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [RFC v1 0/8] x86/init: Linux linker tables "H. Peter Anvin" <hpa@zytor.com> - 2016-01-21 21:30 +0100
  Re: [RFC v1 0/8] x86/init: Linux linker tables "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-01-21 21:40 +0100
    Re: [RFC v1 0/8] x86/init: Linux linker tables Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> - 2016-01-21 22:40 +0100
      Re: [Xen-devel] [RFC v1 0/8] x86/init: Linux linker tables "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-01-21 23:30 +0100
        Re: [Xen-devel] [RFC v1 0/8] x86/init: Linux linker tables "H. Peter Anvin" <hpa@zytor.com> - 2016-01-22 01:00 +0100
          Re: [Xen-devel] [RFC v1 0/8] x86/init: Linux linker tables "Luis R. Rodriguez" <mcgrof@suse.com> - 2016-01-22 01:30 +0100
      Re: [RFC v1 0/8] x86/init: Linux linker tables Michael Brown <mcb30@ipxe.org> - 2016-01-22 09:20 +0100
  Re: [RFC v1 0/8] x86/init: Linux linker tables Michael Matz <matz@suse.de> - 2016-01-22 14:50 +0100
    Re: [RFC v1 0/8] x86/init: Linux linker tables "H. Peter Anvin" <hpa@zytor.com> - 2016-01-22 20:10 +0100
      Re: [RFC v1 0/8] x86/init: Linux linker tables "Luis R. Rodriguez" <mcgrof@do-not-panic.com> - 2016-01-22 23:00 +0100

csiph-web