| 12 Nov 2025 |
Tristan Ross | I set sudo sysctl -w vm.mmap_min_addr=4096 and GCC works | 06:18:15 |
dramforever | the other thing is it may be relevant to us enabling PIE recently | 06:18:41 |
dramforever | ish | 06:18:45 |
dramforever | recent-ish | 06:18:49 |
dramforever | i'm starting to think maybe you shouldn't be on 6.6 | 06:19:14 |
Tristan Ross | The bootstrap-tools GCC is from last year, I thought PIE was within the last couple months | 06:19:14 |
dramforever | although it really also shouldn't be breaking | 06:19:35 |
Mic92 | Check if the binary is supposes to be relocatable with checkseck | 06:19:44 |
Tristan Ross | I shouldn't be but Ubuntu is all that's available until my USB flash drive comes tomorrow and I finish porting NixOS | 06:19:50 |
Mic92 | * Check if the binary is supposed to be relocatable with checkseck | 06:20:02 |
Tristan Ross | Also, the vendor kernel for this system is only 6.6 | 06:20:36 |
dramforever | okay just give me a run down on what works and what doesn't | 06:20:57 |
dramforever | from the start | 06:21:01 |
Tristan Ross | Entire coreutils, gawk (if I update bootstrap-tools), patchelf (if I update bootstrap-tools), sed (if I update bootstrap-tools). | 06:21:39 |
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 |