Friday, 2019-08-23

*** tpb has joined #openrisc00:00
*** mafm has quit IRC00:50
*** mafm has joined #openrisc08:04
*** ysionneau has joined #openrisc14:52
ysionneaushorne: hi :) Is there a documentation of openrisc relocs somewhere ?14:52
ysionneau(regarding uclibc thread)14:53
ZipCPUysionneau: Please stick around.  The channel is active, but only slowly so.  (Answers might take 12hrs or so)14:53
ysionneauZipCPU: thx I'll stick around, though in a few hours I'll be hiking around in Scotland for 2 weeks14:53
ysionneauso I guess I'll read the answer after that14:53
ZipCPUThere are logs too, in case you have to drop out14:54
ysionneauright, thanks, I use a bouncer so I guess that wont be necessary14:55
ZipCPUshorne has been the one answering questions, so I'll tag him now in case that helps14:56
ZipCPU(I don't actually know the answer ...)14:56
ysionneauhe just answered about this topic on the uclibc-ng mailing list today14:56
ysionneauanyway there is no urgency whatsoever14:56
ysionneauok I've got my answer, it is there:
ysionneauthat only describes the dynamic relocs though, not the static ones14:59
ysionneau(the ones that are present in .o but not in final linked elf)15:00
shorneysionneau: there is not much on openrisc relocs other than what is in binutils source20:53
shornenote, I was able to reproduce the issue with the uclibc build20:53
shorneAnd I could fix it by just deleting the code that uss __syscall_error in or1k_clone.S20:53
shornethe problem is only in there20:54
shornei.e. I did this patch20:54
shornediff --git a/libc/sysdeps/linux/or1k/or1k_clone.S b/libc/sysdeps/linux/or1k/or1k_clone.S20:54
shorneindex a2c16ac9e..b290abedb 10064420:54
shorne--- a/libc/sysdeps/linux/or1k/or1k_clone.S20:54
shorne+++ b/libc/sysdeps/linux/or1k/or1k_clone.S20:54
shorne@@ -71,7 +71,7 @@ L(oldpid):20:54
shorne         l.ori r3, r11, 020:54
shorne L(error):20:54
shorne-       l.j SYSCALL_ERROR_NAME20:54
shorne-        l.ori r3,r11,020:54
shorne+       //l.j C_SYMBOL_NAME(__syscall_error)20:54
shorne+       // l.ori r3,r11,020:54
shorne-PSEUDO_END (__or1k_clone)20:54
shorne+END (__or1k_clone)20:55
shorneSo, the bad relocation is only in this 1 file.  I think i/we will need to fix that20:55
shorneNote, in the glibc port I am working on fixing up I dont get this issue and the code is the same pretty much:
tpbTitle: or1k-glibc/or1k_clone.S at upstream-rebase · stffrdhrn/or1k-glibc · GitHub (at
shorneFor relocations in the final binary see:21:03
tpbTitle: or1k-glibc/dl-machine.h at upstream-rebase · stffrdhrn/or1k-glibc · GitHub (at

Generated by 2.13.1 by Marius Gedminas - find it at!