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

Support linker and version scripts #2031

Closed
waruqi opened this issue Feb 7, 2022 · 0 comments
Closed

Support linker and version scripts #2031

waruqi opened this issue Feb 7, 2022 · 0 comments

Comments

@waruqi
Copy link
Member

waruqi commented Feb 7, 2022

Set linker script

Support .ld, .lds files

add_rules("mode.debug", "mode.release")

target("test")
    add_deps("foo")
    set_kind("binary")
    add_files("src/main.c")
    add_files("src/main.lds")

Set version script

Support .ver, .map files

target("foo")
    set_kind("shared")
    add_files("src/foo.c")
    add_files("src/foo.map")

foo.map

{
    global:
        foo;

    local:
        *;
};
@waruqi waruqi added this to the v2.6.4 milestone Feb 7, 2022
@waruqi waruqi closed this as completed Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant