]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
module: set .init_array alignment to 8
authorDavid Daney <david.daney@cavium.com>
Wed, 8 Mar 2017 01:31:08 +0000 (17:31 -0800)
committerJessica Yu <jeyu@redhat.com>
Mon, 13 Mar 2017 16:40:28 +0000 (09:40 -0700)
commit5bd933fe4481688d595ae1dd0440006c8675a1a8
tree75ab5a3e711bdf87db41e96b70885e061d2f0816
parent4495c08e84729385774601b5146d51d9e5849f81
module: set .init_array alignment to 8

The proper idiom for aligning linker sections in modules is different
than for built-in sections.  ". = ALIGN();" followed by a forced
output address of 0 does nothing, as forcing the address changes the
value of ".".

Use output section alignment specifier instead.

Fixes: 9ddf82521c86 ("kernel: add support for .init_array.* constructors")
Reviewed-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Jessica Yu <jeyu@redhat.com>
scripts/module-common.lds