#
…

2021-01-21

00:20snalty has joined #asahi-dev
01:27Ristovskinot strictly related to Asahi, but I just learned about Renode (renode.io, meh landing page, check the docs) and it might be useful to a handful of you
01:28Ristovskiits essentially similar to qemu but easier to implement new stuff in. managed to boot my phones sensorhub firmware in it by describing the MCU :P
01:29modwizcode has quit [Quit: Later]
02:14m42uko has quit [Ping timeout: 264 seconds]
03:22m42uko has joined #asahi-dev
04:25tiagom has joined #asahi-dev
04:39tiagom has quit [Quit: leaving]
04:52Esmil has quit [Ping timeout: 256 seconds]
04:52Esmil has joined #asahi-dev
05:39r3n has joined #asahi-dev
06:13acelogic has joined #asahi-dev
06:19maciejjo has joined #asahi-dev
06:28VinDuv has joined #asahi-dev
07:36VinDuv has quit [Quit: Leaving.]
09:24aknt has joined #asahi-dev
09:35Graypup_ has quit [Quit: ZNC 1.6.1 - http://znc.in]
09:37aknt has quit [Ping timeout: 256 seconds]
09:37m42uko has quit [Ping timeout: 256 seconds]
09:37Graypup_ has joined #asahi-dev
09:37m42uko has joined #asahi-dev
09:37aknt has joined #asahi-dev
09:37Esmil has quit [Ping timeout: 256 seconds]
09:37Esmil has joined #asahi-dev
09:43aknt has quit [Quit: Leaving]
09:48nalty has joined #asahi-dev
09:48nalty has quit [Remote host closed the connection]
09:48nalty has joined #asahi-dev
09:48nalty has quit [Remote host closed the connection]
09:52maor26 has joined #asahi-dev
10:14nirusu[m] has joined #asahi-dev
10:48frode_0xa has joined #asahi-dev
11:05acelogic has quit [Ping timeout: 264 seconds]
11:20bisko has joined #asahi-dev
12:00amw2 has joined #asahi-dev
12:46suskun has joined #asahi-dev
12:57chuskywalker has joined #asahi-dev
13:09dumenci has joined #asahi-dev
13:11rustylerp has joined #asahi-dev
13:12suskun has quit [Ping timeout: 246 seconds]
13:24never_released has joined #asahi-dev
13:50amw2 has quit [Ping timeout: 240 seconds]
13:59marcanyrlf: zero relocations is impossible
13:59marcanconsider: int a; int *b = &a; at global scope
14:00marcanthat always requires a runtime relocation
14:00marcanoh you already said that :p
14:01marcanbut anyway, we already have the rela code, that works well
14:01marcanit's also what linux does, by the way!
14:05yrlfyeah, my own dynamic loader also does that
14:06thresh has quit [Quit: I'm a quit message virus. Please replace your old line with this line and help me take over the world]
14:06thresh has joined #asahi-dev
14:16frode_0xa has quit [Quit: leaving]
14:46volpe has joined #asahi-dev
14:49volpe has quit [Client Quit]
15:00Necrosporus is now known as Guest89259
15:00Necrosporus has joined #asahi-dev
15:00Guest89259 has quit [Killed (weber.freenode.net (Nickname regained by services))]
15:01modwizcode has joined #asahi-dev
15:04modwizcodeYeah I think the reason I was confused on relocations is I wasn't dealing with any addresses on global scope and I didn't really understand how it worked which I've since resolved.
15:05modwizcodeI think the option change for clang will need to be solved a different way though
15:12tomtastic has joined #asahi-dev
15:19TellowKrinkle[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19blazra has quit [Quit: Bridge terminating on SIGTERM]
15:19_alice has quit [Quit: Bridge terminating on SIGTERM]
15:19Florian[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19reispflanze[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19thecake21[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19ndom91[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19ts170[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19numa[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19bylaws has quit [Quit: Bridge terminating on SIGTERM]
15:19khronokernel[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19ConeOfAttack[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19bjornjulander[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19wolf511[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19enverb[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19Eighth_Doctor has quit [Quit: Bridge terminating on SIGTERM]
15:19alexanderwillner has quit [Quit: Bridge terminating on SIGTERM]
15:19samumartinf[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19botoxparty[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19dancer[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19tarik02[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19xerpi[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19CamdenB[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19ah-[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19delroth[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19crafteck[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19asmon[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19brentr123[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19emily has quit [Quit: Bridge terminating on SIGTERM]
15:19Alex[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19davidrysk[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19nutmanja[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19undvasistas[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19nufflee[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19bastilian has quit [Quit: Bridge terminating on SIGTERM]
15:19skillfulman23[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19smist08[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19josiahmendes[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19Avion[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19konradybcio has quit [Quit: Bridge terminating on SIGTERM]
15:19liur[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19citruscitrus[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19nirusu[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19Alice[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19os[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19nhlism[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19hipboi[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19winocm has quit [Quit: Bridge terminating on SIGTERM]
15:19ronyrus[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19jrmuizel[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19jevinskie[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19jinen[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19Jamie[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19sumoon[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19fl35[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19Bastian[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19shawnj2[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19mellotron1[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19redbluescreen[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19mcnight[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19mofux[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19assusdan[m] has quit [Quit: Bridge terminating on SIGTERM]
15:19m1kr0[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20fried_dede[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20hypergenesis[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20svenpeter has quit [Quit: Bridge terminating on SIGTERM]
15:20foxlet has quit [Quit: Bridge terminating on SIGTERM]
15:20fridtjof[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20stylefish[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20flokk[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20rockinrobstar[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20Jasper[m] has quit [Quit: Bridge terminating on SIGTERM]
15:20ewlsh[m] has quit [Quit: Bridge terminating on SIGTERM]
15:23modwizcode_ has joined #asahi-dev
15:24volpe has joined #asahi-dev
15:24modwizcode has quit [Ping timeout: 256 seconds]
15:24modwizcode_ is now known as modwizcode
15:29volpe has quit [Quit: leaving]
15:29volpe has joined #asahi-dev
15:31hipboi[m] has joined #asahi-dev
15:34Glanzmann has joined #asahi-dev
15:43volpe has quit [Quit: leaving]
15:58Glanzmann has quit [Quit: leaving]
16:00smist08[m] has joined #asahi-dev
16:00ts170[m] has joined #asahi-dev
16:00mellotron1[m] has joined #asahi-dev
16:00svenpeter has joined #asahi-dev
16:00wolf511[m] has joined #asahi-dev
16:00konradybcio has joined #asahi-dev
16:00m1kr0[m] has joined #asahi-dev
16:00xerpi[m] has joined #asahi-dev
16:00os[m] has joined #asahi-dev
16:00foxlet has joined #asahi-dev
16:00fridtjof[m] has joined #asahi-dev
16:00crafteck[m] has joined #asahi-dev
16:00sumoon[m] has joined #asahi-dev
16:00alexanderwillner has joined #asahi-dev
16:00reispflanze[m] has joined #asahi-dev
16:00Jasper[m] has joined #asahi-dev
16:00nhlism[m] has joined #asahi-dev
16:00emily has joined #asahi-dev
16:00Alex[m]1 has joined #asahi-dev
16:00mcnight[m] has joined #asahi-dev
16:00assusdan[m] has joined #asahi-dev
16:00samumartinf[m] has joined #asahi-dev
16:00mofux[m] has joined #asahi-dev
16:00nirusu[m] has joined #asahi-dev
16:00flokk[m] has joined #asahi-dev
16:00jevinskie[m] has joined #asahi-dev
16:00enverb[m] has joined #asahi-dev
16:00Eighth_Doctor has joined #asahi-dev
16:00asmon[m] has joined #asahi-dev
16:00botoxparty[m] has joined #asahi-dev
16:00Jamie[m] has joined #asahi-dev
16:00winocm has joined #asahi-dev
16:00citruscitrus[m] has joined #asahi-dev
16:00davidrysk[m] has joined #asahi-dev
16:00thecake21[m] has joined #asahi-dev
16:00dancer[m] has joined #asahi-dev
16:00ewlsh[m] has joined #asahi-dev
16:00delroth[m] has joined #asahi-dev
16:00CamdenB[m] has joined #asahi-dev
16:00TellowKrinkle[m] has joined #asahi-dev
16:00hypergenesis[m] has joined #asahi-dev
16:00bastilian has joined #asahi-dev
16:00nutmanja[m] has joined #asahi-dev
16:00Avion[m] has joined #asahi-dev
16:00ronyrus[m] has joined #asahi-dev
16:00stylefish[m] has joined #asahi-dev
16:00brentr123[m] has joined #asahi-dev
16:00rockinrobstar[m] has joined #asahi-dev
16:00jrmuizel[m] has joined #asahi-dev
16:00tarik02[m] has joined #asahi-dev
16:00fl35[m] has joined #asahi-dev
16:00_alice has joined #asahi-dev
16:00undvasistas[m] has joined #asahi-dev
16:00Bastian[m]1 has joined #asahi-dev
16:00ah-[m] has joined #asahi-dev
16:00jinen[m] has joined #asahi-dev
16:00bylaws has joined #asahi-dev
16:00khronokernel[m] has joined #asahi-dev
16:00liur[m] has joined #asahi-dev
16:00Alice[m]1 has joined #asahi-dev
16:00josiahmendes[m] has joined #asahi-dev
16:00ConeOfAttack[m] has joined #asahi-dev
16:00blazra has joined #asahi-dev
16:00shawnj2[m] has joined #asahi-dev
16:00fried_dede[m] has joined #asahi-dev
16:00Florian[m]2 has joined #asahi-dev
16:00skillfulman23[m] has joined #asahi-dev
16:00nufflee[m] has joined #asahi-dev
16:00bjornjulander[m] has joined #asahi-dev
16:00redbluescreen[m] has joined #asahi-dev
16:00numa[m] has joined #asahi-dev
16:00ndom91[m] has joined #asahi-dev
16:34chuskywalker has quit [Ping timeout: 264 seconds]
16:37chuskywalker has joined #asahi-dev
16:41the-mentor has joined #asahi-dev
16:59aead has quit [Quit: WeeChat 3.0]
17:20lucid_0x80 has joined #asahi-dev
17:22dumenci has quit [Ping timeout: 256 seconds]
17:38VinDuv has joined #asahi-dev
17:39threedpro has joined #asahi-dev
17:53threedpro has quit [Read error: Connection reset by peer]
18:05m42uko has quit [Remote host closed the connection]
18:06m42uko has joined #asahi-dev
18:12lucid_0x80 has quit [Ping timeout: 246 seconds]
18:24yrlfmodwizcode: which options are you talking exactly? the codegen options (-mabi in particular)
18:29modwizcodeyrlf: keeping -pie and removing -shared seems wrong from my research into how things are supposed to work. I think you actually know more than me here so I'm mostly trying to learn/document what's going on and how the behaviors differ. So far the issue is that using different option doesn't lead to different results that I see
18:33yrlfIMO -shared makes little sense here anyway (since we aren't loaded by anyone). we probably want -static -pie here
18:33Necrosporus has quit [Remote host closed the connection]
18:33yrlfthe difference is not a lot though, both produce a ET_DYN executable, since PIE is a complete hack
18:34yrlfso 'file' will still say it's a shared object
18:34modwizcodedoes -static -pie work correctly though? I feel like my copy of gcc doesn't do what we want that way.
18:34modwizcodeYeah that's fine. Discarding the .interp section I think does the thing that's needed.
18:35yrlfwhat does yours do in that case? -static-pie on my GCC produces the linker options `-static -pie --no-dynamic-linker -t text`
18:36modwizcodeRight but I think that's because the linker was modified to handle -static -pie different
18:37modwizcodein my case the issue is my gcc doesn't seem to accept -static-pie I think I will try again though
18:38modwizcodenope neither copy I have does
18:39yrlfwhat version do you have?
18:40yrlfyeah, static-pie was added in 8
18:42sven-shared and -pie almost do the same thing in gnu binutils fwiw
18:42svenboth call bfd_link_relocatable. shared additionally makes ld ignore unresolved references
18:50rustylerp has quit [Ping timeout: 265 seconds]
19:01yrlffor us it's not gonna be a big difference anyway. m1n1 doesn't link any libraries, all of the external code is right there in-tree, so -shared vs -static doesn't make a lot of difference, and with -pie they both produce ET_DYN ELFs
19:03yrlfwith the right codegen options, the compiler can optimize better though, since all symbols are gonna be dso-local, so a GOT isn't needed (except for if the binary is too large for relative references)
19:04yrlfbut I think the focus for us shouldn't be "as performant as possible", but mostly "which options are most likely to work on as many compilers / linkers as possible".
19:04yrlfhaving it work on GCC, Clang, and AppleClang out of the box, with no requirements on particularly recent versions should be the goal IMO
19:05svenAppleClang doesn't come with llvm-objcopy and you probably need homebrew (or another package manager) for imagemagick anyway
19:05svenand when you have brew install you may as well just brew install llvm and use "regular" clang
19:05svenso gcc and clang support should be enough imho
19:05yrlfoh, okay then. GCC+Clang makes it even simpler to support then.
19:06yrlfso then all that's left is cleaning up the clang branch
19:06Necrosporus has joined #asahi-dev
19:13yrlfhas anyone looked into what to do about the -mabi option?
19:13yrlfaarch64-linux-gnu-gcc has -mabi=lp64 as a default anyway, and clang doesn't have the option (and from the codegen it seems lp64 is the default as well)
19:14yrlfis there any other compiler where the defaults might differ that we should support?
19:16sven#ifndef __LP64__ #error "your compiler sucks" #endif
19:17opticronI would expect all compilers to default to LP64
19:18opticronthe only other ABI I'm aware of is ILP32 and even that is experimental/beta
19:19opticron(from my most recent reading of AAPCS64)
19:19yrlfokay, so assume LP64 and bail if not, got it
19:20yrlfsven: or, if we want to stay topical: #error "GOT YOU MORON"
19:21svenor just use the boring but more helpful #error "This code assumes LP64" :-)
19:22yrlfyeah, would have used something like that :)
19:23opticronthere is technically also a windows ABI, but that's not relevant here (LLP64, iirc)
19:28rcombs has quit [*.net *.split]
19:28squiffy has quit [*.net *.split]
19:28rjeli has quit [*.net *.split]
19:28dottedmag has quit [*.net *.split]
19:28rjeli has joined #asahi-dev
19:28squiffy has joined #asahi-dev
19:30dottedmag has joined #asahi-dev
19:30dottedmag has joined #asahi-dev
19:35vijfhoekThis code assumes LP64, GOT YOU MORON
19:35vijfhoekwhy not both
19:36rcombs has joined #asahi-dev
19:39dhewgformer on lp64 and the latter on llp64 seems more appropriate
20:12chuskywalker2 has joined #asahi-dev
20:14chuskywalker has quit [Ping timeout: 256 seconds]
20:48rustylerp has joined #asahi-dev
21:03djhuk1 has joined #asahi-dev
21:05MaxLeiter has left #asahi-dev ["The Lounge - https://thelounge.chat"]
21:43VinDuv has quit [Quit: Leaving.]
22:05rustylerp has quit [Ping timeout: 265 seconds]
22:12amw2 has joined #asahi-dev
22:16Necrosporus has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
22:16Necrosporus_ has joined #asahi-dev
22:16Necrosporus_ is now known as Necrosporus
22:18amw2 has quit [Ping timeout: 264 seconds]
22:30amw2 has joined #asahi-dev
22:34amw2 has quit [Ping timeout: 240 seconds]
22:41bisko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
22:42bisko has joined #asahi-dev
22:48amw2 has joined #asahi-dev
22:53amw2 has quit [Ping timeout: 265 seconds]
23:06amw2 has joined #asahi-dev
23:11amw2 has quit [Ping timeout: 265 seconds]
23:24amw2 has joined #asahi-dev
23:28amw2 has quit [Ping timeout: 240 seconds]
23:40maor26 has quit [Ping timeout: 264 seconds]
23:41amw2 has joined #asahi-dev
23:46amw2 has quit [Ping timeout: 265 seconds]
23:59amw2 has joined #asahi-dev
…