Skip to content

Separate ctors/dtors and init_array/fini_array sections#933

Open
quic-k wants to merge 1 commit intoqualcomm:mainfrom
quic-k:ctors
Open

Separate ctors/dtors and init_array/fini_array sections#933
quic-k wants to merge 1 commit intoqualcomm:mainfrom
quic-k:ctors

Conversation

@quic-k
Copy link
Contributor

@quic-k quic-k commented Mar 11, 2026

No description provided.

Signed-off-by: Kushal Pal <kushpal@qti.qualcomm.com>
PROVIDE_HIDDEN ( __init_array_end = . );
PROVIDE_HIDDEN ( __bothinit_array_end = . );
}
PROVIDE_HIDDEN ( __bothinit_array_end = . );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need these symbols bothinit_array_{start,end} ?

KEEP (*(.fini_array .dtors))
KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*)))
KEEP (*(.fini_array))
KEEP (*(.fini_array*))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this special handling ? Do we see .fini_array* ?

Copy link
Contributor

@parth-07 parth-07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please briefly describe why these changes are required?

@quic-seaswara
Copy link
Contributor

Can you please briefly describe why these changes are required?

ctors and init_array need to be in seperate sections

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

Successfully merging this pull request may close these issues.

3 participants