Search
Tuesday, 30th of May 2023, 17:51:05 UTC
17:56:28
karlosz
it was taking forever with no output
17:56:36
karlosz
and then i got a ton of errors
17:56:48
karlosz
i fixed the errors and now it links in 2 or 3 seconds
17:56:58
karlosz
but i suppose gcc was not handling the slew of errors right
17:57:17
Colleen
<shinmera> the clang toolchain in general is just so much better regarding everything errors.
17:57:38
Colleen
<shinmera> lldb is also much nicer to debug with
17:59:06
karlosz
anyway the problem was forgetting to align to word boundaries
17:59:14
karlosz
https://paste.gnome.org/t6fJuDbd1
17:59:23
karlosz
what the component boxed space looks like
18:00:18
karlosz
then code constant references get rewritten like so https://paste.gnome.org/fTqznvFcQ
18:00:40
karlosz
so we can reference code constants in a r/w space instead of the text space
18:01:03
karlosz
thereby allowing GC to fix up the pointers in the r/w space if anything gets moved
18:01:39
karlosz
but more importantly allowing spaces to get placed wherever, so the initial load can fix up stuff without running afoul of executablre pages being readonl
18:28:02
SAL9000
Shinmera: day2 els currently rendering. I found some oopsies in day1 so those will need re-rendering.
18:30:31
karlosz
https://paste.gnome.org/KtIBVH6Fe
18:30:45
karlosz
notice in the top line that -Wl,-z,text is there
18:30:49
karlosz
meaning no text relocations allowed
18:31:10
karlosz
somehow relocating all the constants off code pages worked!
18:32:15
karlosz
probably GC will get super unhappy whenever it gets to it, since i haven't informed it of the new space's presence yet
18:33:06
Colleen
<shinmera> Now if only I could get my shadow maps to work
18:34:42
karlosz
i guess i should call it a day/week now
18:35:45
karlosz
next time is trying to get everything relocating and see what breaks/doesn't break and then telling the GC about the new constant space
18:36:05
karlosz
and probably also figure out what is going on with the debug-info slot in code
19:40:01
Colleen
<shinmera> https://mastodon.tymoon.eu/@shinmera/110459324016996043
Wednesday, 31st of May 2023, 5:51:05 UTC