Skip to content
Commit 5bd933fe authored by David Daney's avatar David Daney Committed by Jessica Yu
Browse files

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: 9ddf8252 ("kernel: add support for .init_array.* constructors")
Reviewed-by: default avatarAndrey Ryabinin <aryabinin@virtuozzo.com>
Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
Signed-off-by: default avatarJessica Yu <jeyu@redhat.com>
parent 4495c08e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment