| 12 Nov 2025 |
Tristan Ross | objdump works, nm works, ld works | 06:22:53 |
Tristan Ross | gcc is broken (unless I set the vm min addr) | 06:23:04 |
Tristan Ross | (gcc includes g++ but as and ar are fine) | 06:23:23 |
dramforever | does gawk work if you don't update bootstrap tools | 06:23:32 |
dramforever | but set vm min addr | 06:23:37 |
Tristan Ross | Yes | 06:23:51 |
dramforever | thanks spaghetti monster | 06:25:46 |
Tristan Ross | lol | 06:25:57 |
dramforever | anyway the fine folks at ubuntu decided to set vm.mmap_min_addr too high for our non-pie executables | 06:26:08 |
dramforever | or something | 06:26:14 |
Tristan Ross | Oh fun | 06:26:18 |
dramforever | what was it at before | 06:26:29 |
Tristan Ross | 65536 | 06:26:45 |
dramforever | okay that's still kinda sus | 06:27:35 |
dramforever | give me a readelf -h on this file | 06:28:29 |
dramforever | the one with virtaddr f000 | 06:28:36 |
Tristan Ross | ELF Header:
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - GNU
ABI Version: 0
Type: EXEC (Executable file)
Machine: RISC-V
Version: 0x1
Entry point address: 0x2ca98
Start of program headers: 64 (bytes into file)
Start of section headers: 2203656 (bytes into file)
Flags: 0x5, RVC, double-float ABI
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 12
Size of section headers: 64 (bytes)
Number of section headers: 31
Section header string table index: 30
| 06:29:25 |
dramforever | okay we're cooked | 06:29:31 |
Tristan Ross | lol | 06:29:39 |
Tristan Ross | Is it because of the entry point addr? | 06:29:58 |
dramforever | no it's just it's not a PIE | 06:30:14 |
dramforever | and the address is 0xf000 | 06:30:19 |
Tristan Ross | Oh | 06:30:21 |
dramforever | and the kernel goes wait a sec | 06:30:24 |
Tristan Ross | That's a problem | 06:30:29 |
dramforever | how did this happen | 06:30:42 |
Tristan Ross | Idk | 06:30:50 |
Tristan Ross | It's from nixpkgs, I didn't touch PIE stuff lol | 06:31:02 |
dramforever | anyway there are random crap we don't build as pie due to it breaking things | 06:33:22 |
dramforever | random crap like... gcc | 06:33:26 |