3 ms·
"GNU" is a vendor prefix, not advertising. If you look at Solaris binaries, you'll see a lot of "SUNW". (And you'll occasionally see "SUNW" on GNU binaries for
by geofft 11y ago
"GNU" is a vendor prefix, not advertising. If you look at Solaris binaries, you'll see a lot of "SUNW". (And you'll occasionally see "SUNW" on GNU binaries for things that they adopted from Sun.)
The ELF standard (which GNU does not control, as 'sveiss said) says this is what a note section is for:
"Sometimes a vendor or system builder needs to mark an object file with special information that other programs will check for conformance, compatibility, etc. Sections of type SHT_NOTE and program header elements of type PT_NOTE can be used for this purpose. [...] There is no formal mechanism for avoiding name conflicts. By convention, vendors use their own name, such as 'XYZ Computer Company,' as the identifier."
(If you want to argue that they should have named it ".note.GNU-noexecstack", I wouldn't disagree.)
- DSMan195276 11y ago> (If you want to argue that they should have named it ".note.GNU-noexecstack", I wouldn't disagree.) The presence of that alone won't make the stack noexec, the status of the stack is determined by whether or not the `executable` flag is set on that section. So calling it the `stack` makes sense, since it in-effect just represents the stack itself, which isn't normally mentioned in the ELF binary.
- fit2rule 11y agoJust by way of example, I've used .note sections in the past as a place to store such mundane things as checksum of the binary text segment, so that text-segment verification can occur before the binary is loaded (for safety-critical systems) .. its quite a useful section, as long as you know what you're looking for..
- sigjuice 11y agoe.g. .SUNW_ctf https://illumos.org/man/4/ctf https://illumos.org/man/4/ctf