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

SDCC compiled with program-prefix breaks .rel files generated with sdas #98

Closed
dciabrin opened this issue Jun 19, 2023 · 0 comments
Closed
Assignees
Labels

Comments

@dciabrin
Copy link
Owner

SDCC ships a customized asxxxx and aslink that generates extended linking information in .rel files. These information are expected by sdar when building static libraries.
However the customization is enabled at runtime based on the name of the executable, i.e. it expects the assembler and the linker to be called sdasz80 and sdld respectively. Since we compile sdcc with program-prefix, the customization is never enabled.

$ SDAS_DIAG=1 /usr/bin/z80-neogeo-ihx-sdasz80 2>/dev/null 
sdas path: /usr/bin/z80-neogeo-ihx-sdasz80
is sdas: 0

Consequently, the compiler generates incompletes .rel files, which although are good enough to be linked, cannot be used with static library generated by sdar.

@dciabrin dciabrin self-assigned this Jun 19, 2023
@dciabrin dciabrin added the bug label Jun 19, 2023
dciabrin added a commit to dciabrin/ngdevkit-toolchain that referenced this issue Jun 21, 2023
Fix install target, remove unused 8bits archs installed by sdcc

Ref dciabrin/ngdevkit#98
dciabrin added a commit to dciabrin/ngdevkit-toolchain that referenced this issue Jun 22, 2023
Fix install of sdcc lib files, make sdcc configure overrides visible
in sdcc's config.log

Ref dciabrin/ngdevkit#98
dciabrin added a commit to dciabrin/ngdevkit-toolchain that referenced this issue Jun 22, 2023
Do not rely on pushd/popd to install sdcc

Ref dciabrin/ngdevkit#98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant