This adds an ALIGN statement to the rodata linker snippet for coverage. Without this, sometimes the section is not aligned, but __init_array_start indicates an aligned address, resulting in incorrect function pointers. So align it. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
11 lines
235 B
Text
11 lines
235 B
Text
/*
|
|
* Copyright (c) 2019 Intel Corporation
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
. = ALIGN(4);
|
|
|
|
PROVIDE_HIDDEN (__init_array_start = .);
|
|
KEEP (*(SORT(.init_array.*)))
|
|
KEEP (*(.init_array*))
|
|
PROVIDE_HIDDEN (__init_array_end = .);
|