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

David Miller
2011-02-17T22:22:44Z

From: Dmitry Torokhov <dtor@vmware.com>
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.