Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
This NixOS code ensures that the system provide version-specific $LOCALE_ARCHIVE
environment variables to mitigate the effects of
NixOS/nixpkgs#38991.
To deploy it, copy the file into your /etc/nixos folder using a file name
like multi-glibc-locale-paths.nix. Then edit your configuration.nix file to
contain the attribute:
imports = [ ./multi-glibc-locale-paths.nix ];
| ; Allow the linker to find the _start symbol. The linker will begin program execution | |
| ; there. | |
| global _start | |
| ; Start the .data section of the executable, which stores constants (read-only data) | |
| ; It doesn't matter which order your sections are in, I just like putting .data first | |
| section .rodata | |
| ; Declare some bytes at a symbol called error_msg. NASM's db pseudo-instruction | |
| ; allows either a single byte value, a constant string, or a combination of the two | |
| ; as seen here. 0xA = new line, and 0x0 = string-terminating null |