Commit 5bd933f
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: 9ddf825 ("kernel: add support for .init_array.* constructors")
Reviewed-by: Andrey Ryabinin <[email protected]>
Signed-off-by: David Daney <[email protected]>
Signed-off-by: Jessica Yu <[email protected]>1 parent 4495c08 commit 5bd933f
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
0 commit comments