diff options
| -rw-r--r-- | include/asm-generic/vmlinux.lds.h | 1 | ||||
| -rw-r--r-- | scripts/module-common.lds | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index bee5d683074d..ac78910d7416 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h | |||
| @@ -478,6 +478,7 @@ | |||
| 478 | #define KERNEL_CTORS() . = ALIGN(8); \ | 478 | #define KERNEL_CTORS() . = ALIGN(8); \ |
| 479 | VMLINUX_SYMBOL(__ctors_start) = .; \ | 479 | VMLINUX_SYMBOL(__ctors_start) = .; \ |
| 480 | *(.ctors) \ | 480 | *(.ctors) \ |
| 481 | *(SORT(.init_array.*)) \ | ||
| 481 | *(.init_array) \ | 482 | *(.init_array) \ |
| 482 | VMLINUX_SYMBOL(__ctors_end) = .; | 483 | VMLINUX_SYMBOL(__ctors_end) = .; |
| 483 | #else | 484 | #else |
diff --git a/scripts/module-common.lds b/scripts/module-common.lds index bec15f908fc6..73a2c7da0e55 100644 --- a/scripts/module-common.lds +++ b/scripts/module-common.lds | |||
| @@ -16,4 +16,7 @@ SECTIONS { | |||
| 16 | __kcrctab_unused 0 : { *(SORT(___kcrctab_unused+*)) } | 16 | __kcrctab_unused 0 : { *(SORT(___kcrctab_unused+*)) } |
| 17 | __kcrctab_unused_gpl 0 : { *(SORT(___kcrctab_unused_gpl+*)) } | 17 | __kcrctab_unused_gpl 0 : { *(SORT(___kcrctab_unused_gpl+*)) } |
| 18 | __kcrctab_gpl_future 0 : { *(SORT(___kcrctab_gpl_future+*)) } | 18 | __kcrctab_gpl_future 0 : { *(SORT(___kcrctab_gpl_future+*)) } |
| 19 | |||
| 20 | . = ALIGN(8); | ||
| 21 | .init_array 0 : { *(SORT(.init_array.*)) *(.init_array) } | ||
| 19 | } | 22 | } |
