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

executable-stack error in rpmlint when rpm build #677

Open
smbd opened this issue Nov 21, 2024 · 0 comments
Open

executable-stack error in rpmlint when rpm build #677

smbd opened this issue Nov 21, 2024 · 0 comments

Comments

@smbd
Copy link

smbd commented Nov 21, 2024

openSUSE builds rpm package of v6.2.9, but report executable-stack errors by rpmlint.

So, a building rpm is not finished successfully.

https://build.opensuse.org/build/network/openSUSE_Tumbleweed/x86_64/EternalTerminal/_log

[  211s] RPMLINT report:
[  211s] ===============
[  212s] ============================ rpmlint session starts ============================
[  212s] rpmlint: 2.6.1
[  212s] configuration:
[  212s]     /opt/testing/lib64/python3.11/rpmlint/configdefaults.toml
[  212s]     /opt/testing/share/rpmlint/cron-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/dbus-services.toml
[  212s]     /opt/testing/share/rpmlint/device-files-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/licenses.toml
[  212s]     /opt/testing/share/rpmlint/opensuse.toml
[  212s]     /opt/testing/share/rpmlint/pam-modules.toml
[  212s]     /opt/testing/share/rpmlint/permissions-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/pie-executables.toml
[  212s]     /opt/testing/share/rpmlint/polkit-rules-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/scoring.toml
[  212s]     /opt/testing/share/rpmlint/security.toml
[  212s]     /opt/testing/share/rpmlint/sudoers-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/sysctl-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/systemd-tmpfiles.toml
[  212s]     /opt/testing/share/rpmlint/users-groups.toml
[  212s]     /opt/testing/share/rpmlint/world-writable-whitelist.toml
[  212s]     /opt/testing/share/rpmlint/zypper-plugins.toml
[  212s] checks: 41, packages: 2
(snip)
[  212s] EternalTerminal.x86_64: E: executable-stack (Badness: 10000) /usr/bin/crashpad_handler
[  212s] EternalTerminal.x86_64: E: executable-stack (Badness: 10000) /usr/bin/et-client
[  212s] EternalTerminal.x86_64: E: executable-stack (Badness: 10000) /usr/bin/etserver
[  212s] The binary declares the stack as executable. Executable stack is usually an
[  212s] error as it is only needed if the code contains GCC trampolines or similar
[  212s] constructs which uses code on the stack. One common source for needlessly
[  212s] executable stack cases are object files built from assembler files which don't
[  212s] define a proper .note.GNU-stack section.

Please refer to https://en.opensuse.org/openSUSE:Packaging_checks for information on what a executable-stack is.

This page says "Probably the easiest solution is to pass -Wl,-z,noexecstack to the linker."

And I tried to set LDFLAGS="-Wl,-z,noexecstack", but errors are still reported.

I think the best way is the source code will be fixed, not set LDFALGS nor other way.

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

1 participant