Thread (33 messages) 33 messages, 7 authors, 2011-02-23

Re: [PATCH 1/3] module: deal with alignment issues in built-in module versions

From: David Miller <davem@davemloft.net>
Date: 2011-02-17 22:22:47
Also in: linux-m68k, lkml

From: Dmitry Torokhov <redacted>
Date: Thu, 17 Feb 2011 14:19:57 -0800
Any pointers as to how to emit these pointers with asm?
	.section	FOO_SECTION, "a"
	.align		SIZEOF_POINTER
	.{,x}word	POINTER
	.previous

Where FOO_SECTION is your special section name, SIZEOF_POINTER is
sizeof(void *), and POINTER is the pointer you want to add to the
section.

You have to also pick .word vs. .xword, or whatever the appropriate
sized pointer mnenomic is for a given architecture.  I know .word
works for 32-bit sparc, and .xword works for 64-bit sparc.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help