*** tpb has joined #openrisc | 00:00 | |
*** mafm has quit IRC | 00:50 | |
*** mafm has joined #openrisc | 08:04 | |
*** ysionneau has joined #openrisc | 14:52 | |
ysionneau | shorne: hi :) Is there a documentation of openrisc relocs somewhere ? | 14:52 |
---|---|---|
ysionneau | (regarding uclibc thread) | 14:53 |
ZipCPU | ysionneau: Please stick around. The channel is active, but only slowly so. (Answers might take 12hrs or so) | 14:53 |
ysionneau | ZipCPU: thx I'll stick around, though in a few hours I'll be hiking around in Scotland for 2 weeks | 14:53 |
ysionneau | so I guess I'll read the answer after that | 14:53 |
ZipCPU | There are logs too, in case you have to drop out | 14:54 |
ysionneau | right, thanks, I use a bouncer so I guess that wont be necessary | 14:55 |
ZipCPU | shorne has been the one answering questions, so I'll tag him now in case that helps | 14:56 |
ZipCPU | (I don't actually know the answer ...) | 14:56 |
ysionneau | he just answered about this topic on the uclibc-ng mailing list today | 14:56 |
ysionneau | anyway there is no urgency whatsoever | 14:56 |
ysionneau | ok I've got my answer, it is there: https://github.com/openrisc/doc/raw/master/openrisc-arch-1.3-rev1.pdf | 14:58 |
ysionneau | that only describes the dynamic relocs though, not the static ones | 14:59 |
ysionneau | (the ones that are present in .o but not in final linked elf) | 15:00 |
shorne | ysionneau: there is not much on openrisc relocs other than what is in binutils source | 20:53 |
shorne | note, I was able to reproduce the issue with the uclibc build | 20:53 |
shorne | And I could fix it by just deleting the code that uss __syscall_error in or1k_clone.S | 20:53 |
shorne | the problem is only in there | 20:54 |
shorne | i.e. I did this patch | 20:54 |
shorne | diff --git a/libc/sysdeps/linux/or1k/or1k_clone.S b/libc/sysdeps/linux/or1k/or1k_clone.S | 20:54 |
shorne | index a2c16ac9e..b290abedb 100644 | 20:54 |
shorne | --- a/libc/sysdeps/linux/or1k/or1k_clone.S | 20:54 |
shorne | +++ b/libc/sysdeps/linux/or1k/or1k_clone.S | 20:54 |
shorne | @@ -71,7 +71,7 @@ L(oldpid): | 20:54 |
shorne | l.ori r3, r11, 0 | 20:54 |
shorne | L(error): | 20:54 |
shorne | - l.j SYSCALL_ERROR_NAME | 20:54 |
shorne | - l.ori r3,r11,0 | 20:54 |
shorne | + //l.j C_SYMBOL_NAME(__syscall_error) | 20:54 |
shorne | + // l.ori r3,r11,0 | 20:54 |
shorne | -PSEUDO_END (__or1k_clone) | 20:54 |
shorne | +END (__or1k_clone) | 20:55 |
shorne | So, the bad relocation is only in this 1 file. I think i/we will need to fix that | 20:55 |
shorne | Note, in the glibc port I am working on fixing up I dont get this issue and the code is the same pretty much: https://github.com/stffrdhrn/or1k-glibc/blob/upstream-rebase/sysdeps/unix/sysv/linux/or1k/or1k_clone.S | 21:00 |
tpb | Title: or1k-glibc/or1k_clone.S at upstream-rebase · stffrdhrn/or1k-glibc · GitHub (at github.com) | 21:00 |
shorne | For relocations in the final binary see: | 21:03 |
shorne | https://github.com/stffrdhrn/or1k-glibc/blob/upstream-rebase/sysdeps/or1k/dl-machine.h#L191 | 21:03 |
tpb | Title: or1k-glibc/dl-machine.h at upstream-rebase · stffrdhrn/or1k-glibc · GitHub (at github.com) | 21:03 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!