#asahi-dev · 2021-01-17 15:03
yrlfokay, I think I found a way to fix it#asahi-dev · 2021-01-17 14:53
yrlfhuh, so I guess it's time to understand how that "get my own base address" hack works portably then#asahi-dev · 2021-01-17 14:51
yrlfmy bad#asahi-dev · 2021-01-17 14:51
yrlfoh, woops, that's a linker script symbol#asahi-dev · 2021-01-17 14:49
yrlfit's just declared, and clang gets confused and just puts it somewhere#asahi-dev · 2021-01-17 14:49
yrlf_base isn't actually defined anywhere#asahi-dev · 2021-01-17 14:49
yrlfoh.#asahi-dev · 2021-01-17 14:49
yrlfrelocations do exist, but, for some reason, it looks like clang or lld decided to use the _vectors_start relocation for base as well#asahi-dev · 2021-01-17 14:36
yrlfI'll dig through print_regs and see whatever the hell clang produced there#asahi-dev · 2021-01-17 14:36
yrlfyeah, for some reason the relocation for base doesn't actually exist. like, what?#asahi-dev · 2021-01-17 14:24
yrlfsven: thx :D#asahi-dev · 2021-01-17 14:24
yrlfthat "relative" address looks broken#asahi-dev · 2021-01-17 14:21
yrlfshould be fine now :)#asahi-dev · 2021-01-17 14:18
yrlfwoops, forgot signoff, one moment#asahi-dev · 2021-01-17 14:18
yrlfI pushed the fixes to the clang branch :)#asahi-dev · 2021-01-17 14:14
yrlf*noticed#asahi-dev · 2021-01-17 14:14
yrlfjust niced, x10 is also used accross the apply_rela call#asahi-dev · 2021-01-17 14:11
yrlfsven, do you wanna write the PR, or should I just push that fix as another commit on the clang branch?#asahi-dev · 2021-01-17 14:10
yrlfnice find j`ey!#asahi-dev · 2021-01-17 14:09
yrlfcase for '\\r' is missing here#asahi-dev · 2021-01-17 14:09
yrlfhttps://github.com/llvm/llvm-project/blob/00dc97f16708aad67834552285c0af01b37303d6/llvm/lib/MC/MCParser/AsmLexer.cpp#L566#asahi-dev · 2021-01-17 14:09
yrlfin the meantime, I found the LLVM bug:#asahi-dev · 2021-01-17 13:57
yrlfI already found one weirdness: the clang assembler doesn't understand '\r' and writes a literal 'r' instead#asahi-dev · 2021-01-17 13:56
yrlf*svenpeter#asahi-dev · 2021-01-17 13:56
yrlfyes, that's my patch. I don't have an M1, so I'm effectively reversing this with a crash log and binary sven got from marcan#asahi-dev · 2021-01-17 13:54
yrlfyeah, so then that's probably what's wrong: 0x10020 is not a good boot_args address xD#asahi-dev · 2021-01-17 13:54
yrlfyeah, I thought to look in there, but haven't found a convenient moment yet. thanks :)#asahi-dev · 2021-01-17 13:41
yrlfcurrently debugging a crash of the clang build of m1n1; what is a sensible value of the address of boot_args? knowing if that address still makes sense or if it already broke before that is useful#asahi-dev · 2021-01-16 15:49
yrlf@asmon[m]: there's a log of the asahi channels linked on asahilinux.org