Skip to content

newt: Extend link tables symbols #597

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

Merged
merged 1 commit into from
Jun 2, 2025

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented May 23, 2025

So far for link time generated tables two symbols
were create for each table:

pkg.link_tables:
    - foo

would generate link_tables.ld.h with following content

        __foo_start__ = .;
        KEEP(*(.foo))
        KEEP(*(SORT(.foo.*)))
        __foo_end__ = .;

Now additional symbol foo will be generated it will make it more straightforward to use link-time tables in source code where table can be access directly
by a name specified in yml

        __foo_start__ = .;
        foo = .;
        KEEP(*(.foo))
        KEEP(*(SORT(.foo.*)))
        __foo_end__ = .;

So far for link time generated tables two symbols
were create for each table:

pkg.link_tables:
    - foo

would generate link_tables.ld.h with following content
        __foo_start__ = .;
        KEEP(*(.foo))
        KEEP(*(SORT(.foo.*)))
        __foo_end__ = .;

Now additional symbol foo will be generated it will
make it more straightforward to use link-time tables
in source code where table can be access directly
by a name specified in yml
        __foo_start__ = .;
        foo = .;
        KEEP(*(.foo))
        KEEP(*(SORT(.foo.*)))
        __foo_end__ = .;
@kasjer kasjer merged commit cbaa907 into apache:master Jun 2, 2025
70 checks passed
@kasjer kasjer deleted the kasjer/link-tables-add-table-symbol branch June 2, 2025 07:09
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.

2 participants