Browse Source

getarch/cpuid.S: Fix warning about executable stack

When using the GNU toolchain a warning is printed about an executible
stack:
 /usr/lib64/gcc/.../x86_64-suse-linux/bin/ld: warning: /tmp/ccyG3xBB.o: missing .note.GNU-stack section implies executable stack
[   15s] /usr/lib64/gcc/.../x86_64-suse-linux/bin/ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker
to prevent this warning, add:
    ```
            .section        .note.GNU-stack,"",@progbits
    ```

Signed-off-by: Egbert Eich <eich@suse.com>
tags/v0.3.30
Egbert Eich 6 months ago
parent
commit
61b9339d3a
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      cpuid.S

+ 3
- 0
cpuid.S View File

@@ -65,3 +65,6 @@ _cpuid:
.subsections_via_symbols .subsections_via_symbols


#endif #endif
#if defined(__ELF__) && defined(__linux__)
.section .note.GNU-stack,"",@progbits
#endif

Loading…
Cancel
Save