Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alignment and empty sections handling #3

Open
Trass3r opened this issue Dec 19, 2018 · 1 comment
Open

Alignment and empty sections handling #3

Trass3r opened this issue Dec 19, 2018 · 1 comment

Comments

@Trass3r
Copy link

Trass3r commented Dec 19, 2018

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
@PromyLOPh
Copy link
Owner

PromyLOPh commented Dec 20, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants