!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

196 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux https://github.com/orgs/NixOS/teams/risc-v58 Servers

Load older messages


SenderMessageTime
12 Nov 2025
@rosscomputerguy:matrix.orgTristan 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:matrix.orgdramforeverokay we're cooked06:29:31
@rosscomputerguy:matrix.orgTristan Rosslol06:29:39
@rosscomputerguy:matrix.orgTristan RossIs it because of the entry point addr?06:29:58
@dramforever:matrix.orgdramforeverno it's just it's not a PIE06:30:14
@dramforever:matrix.orgdramforeverand the address is 0xf00006:30:19
@rosscomputerguy:matrix.orgTristan RossOh06:30:21
@dramforever:matrix.orgdramforeverand the kernel goes wait a sec06:30:24
@rosscomputerguy:matrix.orgTristan RossThat's a problem06:30:29
@dramforever:matrix.orgdramforeverhow did this happen06:30:42
@rosscomputerguy:matrix.orgTristan RossIdk06:30:50
@rosscomputerguy:matrix.orgTristan RossIt's from nixpkgs, I didn't touch PIE stuff lol06:31:02
@dramforever:matrix.orgdramforeveranyway there are random crap we don't build as pie due to it breaking things06:33:22
@dramforever:matrix.orgdramforeverrandom crap like... gcc06:33:26
@dramforever:matrix.orgdramforeveri cba to check rn but you can dig around to see if all the non-PIEs have 0xf00006:34:20
@rosscomputerguy:matrix.orgTristan RossSo the fix would be to disable PIE on RISC-V? Or actually fix whatever the hell is going on?06:34:22
@rosscomputerguy:matrix.orgTristan RossI already did, they do...06:34:39
@dramforever:matrix.orgdramforeveryeah so only PIEs will work lmao06:34:56
@dramforever:matrix.orgdramforeveror you set vm.mmap_min_addr and ignore this problem06:35:05
@rosscomputerguy:matrix.orgTristan RossGreat...06:35:18
@dramforever:matrix.orgdramforever it's set in the kernel in CONFIG_DEFAULT_MMAP_MIN_ADDR 06:35:57
@dramforever:matrix.orgdramforever so presumably ubuntu is doing something to their binutils to match 06:36:06
@rosscomputerguy:matrix.orgTristan RossOh neat06:36:17
@dramforever:matrix.orgdramforeveror maybe they just all have full on PIEs06:36:28
@rosscomputerguy:matrix.orgTristan Ross I checked gcc -V and they do have default PIE set 06:36:43
@dramforever:matrix.orgdramforever you can try to check a -no-pie thing on ubuntu and see if the base address is different06:36:48
@dramforever:matrix.orgdramforeverhow has nobody ever noticed this problem06:37:22
@rosscomputerguy:matrix.orgTristan RossI don't really feel like checking lol. I'm glad to have a solution right now lol. My head hurts after working on this for 3 days.06:37:28
@dramforever:matrix.orgdramforeverare you the first person to every try to use nixpkgs on ubuntu on riscv6406:37:39
@rosscomputerguy:matrix.orgTristan RossBecause not many people use RISC-V I assume lol06:37:46

Show newer messages


Back to Room ListRoom Version: 10