Skip to content

Alignment and empty sections handling #3

@Trass3r

Description

@Trass3r

For the map below the tool mainly shows 1 large symbol . = ALIGN (0x4) of size 84.
The usb_descriptor_list hint is not used.

.rodata         0x00001798       0x64
 *(.rodata*)
 .rodata.usb_descriptor_list
                0x00001798       0x54 firmware.elf.ltrans0.ltrans.o
                0x000017ec                . = ALIGN (0x4)
 *(.init)
 .init          0x000017ec        0x4 crti.o
                0x000017ec                _init
 .init          0x000017f0        0x8 crtn.o
                0x000017f8                . = ALIGN (0x4)
                0x000017f8                __preinit_array_start = .
 *(.preinit_array)
                0x000017f8                __preinit_array_end = .
                0x000017f8                __init_array_start = .
 *(SORT_BY_NAME(.init_array.*))
 *(.init_array)
 .init_array    0x000017f8        0x4 crtbegin.o
                0x000017fc                __init_array_end = .

Linker script excerpt:

	.rodata : {
		*(.rodata*)
		. = ALIGN(4);
		KEEP(*(.init))
		. = ALIGN(4);
		__preinit_array_start = .;
		KEEP (*(.preinit_array))
		__preinit_array_end = .;
		__init_array_start = .;
		KEEP (*(SORT(.init_array.*)))
		KEEP (*(.init_array))
		__init_array_end = .;
	} > FLASH = 0xFF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions