ld: Change the name of input section irq_vectors_alloc_data

The arch/x86/CMakeLists.txt build scripts names five sections that are
generated from .bin files. Two of them are named the same as the .bin
file, and the other three are named inconsistently.

To be consistent, we will rename the three that are named inconistenly
to align with the two that are named as the .bin file.

Being consistent simplifies the system and fosters code-reuse.

This patch renames irq_vectors_alloc_data.

Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2019-02-12 16:19:05 +01:00 committed by Andrew Boie
commit d515315a86
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ add_custom_command(
-I binary
-B ${OUTPUT_ARCH}
-O ${OUTPUT_FORMAT}
--rename-section .data=irq_vectors_alloc_data
--rename-section .data=irq_vectors_alloc
irq_vectors_alloc.bin
irq_vectors_alloc.o
DEPENDS gen_idt_output irq_vectors_alloc.bin

View file

@ -290,7 +290,7 @@ SECTIONS
z_interrupt_vectors_allocated = .;
#ifdef LINKER_PASS2
KEEP(*(irq_vectors_alloc_data))
KEEP(*(irq_vectors_alloc))
#else
. += (CONFIG_IDT_NUM_VECTORS + 7) / 8;
#endif /* LINKER_PASS2 */