lekernel changed the topic of #milkymist to: Mixxeo, Migen, Milkymist-ng & other Milkymist projects :: Logs: http://en.qi-hardware.com/mmlogs
kristianpaul has quit [Ping timeout: 256 seconds]
kristianpaul has joined #milkymist
Gurty has quit [*.net *.split]
Gurty has joined #milkymist
<ysionneau> so either I fix ld or I fix the link script
<ysionneau> let's fix the link script :)
wpwrak has quit [Ping timeout: 240 seconds]
wpwrak has joined #milkymist
<ysionneau> great, now that I added tons of lines of junk in my linker script
<ysionneau> it links
<ysionneau> mwalle: ok now I've got the right VirtAddr and PhysAddr in readelf
bhamilton has joined #milkymist
<larsc> but does that make any difference?
bhamilton has left #milkymist [#milkymist]
bhamilton has joined #milkymist
bhamilton has left #milkymist [#milkymist]
<ysionneau> larsc: it seems to work (qemu). -kernel loads it at 0x4000 paddr even if all addresses in the program are 0xc000 :)
<ysionneau> great!
<ysionneau> one less problem
<larsc> ah
<larsc> good
<ysionneau> no more ugly hacks in qemu \o/
bhamilton has joined #milkymist
bhamilton has left #milkymist [#milkymist]
_whitelogger has joined #milkymist
bhamilton has joined #milkymist
bhamilton has left #milkymist [#milkymist]
bhamilton has joined #milkymist
bhamilton has quit [Quit: Leaving.]
bhamilton has joined #milkymist
bhamilton has left #milkymist [#milkymist]
antgreen has joined #milkymist
bhamilton has joined #milkymist
<mwalle> ysionneau: mhhh, are you aware of the licensing issues? eg https://github.com/fallen/NetBSD/blob/master/sys/lib/libkern/arch/lm32/_ashlsi3.S
<ysionneau> damn it
<ysionneau> gplv3 hits again
<mwalle> well it would be the same with gpl2 :)
<mwalle> anyway, isnt that libgcc stuff?
<ysionneau> yes indeed
<ysionneau> yes
<mwalle> which is provided by the compiler with a linking exception?
<ysionneau> I remember I had troubles with that
<ysionneau> those symbols were "undefined"
<ysionneau> I found out linux kernel adds them like that
<ysionneau> I did the same
<ysionneau> but indeed license issue :(
<ysionneau> kernel is not linked against libgcc
<ysionneau> but it's linked against libkern, maybe I can put it into libkern ... I don't know
<mwalle> you cant mix bsd with gpl unless the resulting license should be gpl
<mwalle> which wont be accepted upstream i think :)
<ysionneau> you're absolutely right
<ysionneau> I just didn't think about checking license header when copy pasting
<ysionneau> I was just preoccupied by fixing the problem
<ysionneau> not checking legal issues
<ysionneau> but yes it's a problem :(
<ysionneau> mwalle: you were talking about a "linking exception"?
<ysionneau> what is that ?
<ysionneau> can't I use that trick as well ?
<mwalle> you could ask the netbsd guys why they dont link against libgcc (maybe because there are other compilers? ):
<larsc> I think some of the platforms do
<mwalle> libgcc (a libary provided with the gnu c compiler) provides these functions, so the easiest way to do it is to (statically) link against libgcc
<ysionneau> However, the FSF decided long ago to allow developers to use GCC's libraries to compile any program, regardless of its license < so I can use this code, right?
<ysionneau> and link with NetBSD kernel, regardless of the fact that I put the whole thing under BSD
<larsc> yes
<larsc> inal
<ysionneau> so I'm probably fine, even with the scary gplv3 header in the file
<larsc> you can still use them even if they were under the gpl3
<larsc> it would just mean that your binary kernel is also under the terms of the gpl3
<ysionneau> ? really?
<larsc> yes
<ysionneau> doesn't the exception apply?
<larsc> for the case the exception didn't apply
<ysionneau> you're saying the exception does not apply to my use of the file from libgcc?
<ysionneau> or you're saying "if it does not apply"
<larsc> I'm saying that I'm not a lawyer ;)
<ysionneau> =)
<larsc> I think it applies
<larsc> but even for the case that it did not, you'd still be safe
<mwalle> i think you are not allowed to copy that file
<mwalle> ie. integrating it into your own project
<larsc> unless under the terms of gplv3
<mwalle> yeah of course ;)
<larsc> ;)
<mwalle> but what you can do, is to link the GPLv3 libgcc against the BSD netbsd
<ysionneau> :(
<ysionneau> that might imply me to go against the current of netbsd build system
<ysionneau> since it seems the kernel does not link with libgcc
<mwalle> ysionneau: are you sure? on all platforms?
<ysionneau> I will need to fight a little bit with the build system
<ysionneau> mwalle: I'm not totally sure
<mwalle> ask in #netbsd :)
<mwalle> on ircnet (?)
<ysionneau> freenode
<mwalle> mhh
<larsc> ysionneau: I think we've talked about this before and you said that some of the platforms link against libgcc
<ysionneau> ah!
<ysionneau> ok
<larsc> iirc
<mwalle> is that the official channel?
<ysionneau> my memory is kind of blurry about this topic
<ysionneau> I don't remember very well
<ysionneau> mwalle: I think so
<larsc> don't bang your head against the wall that often ;)
<mwalle> where is hubert feyrer
<ysionneau> there are 3 channels
<ysionneau> in fact
<ysionneau> larsc: ahah yes I should stop doing that maybe...
<mwalle> ysionneau: but congrats on the pma/vma issue :)
<ysionneau> thanks for the help :)
<ysionneau> I did not know ELF was aware of physical load address
<mwalle> ysionneau: you might try the ircnet channel, last time (years ago ;) it was very active
bhamilton has quit [Quit: Leaving.]
bhamilton has joined #milkymist
<ysionneau> ok t:)
<ysionneau> mwalle : you are reviewing my commits in the netbsd kernel ?
<mwalle> ysionneau: i was just browsing through the github repository. hit that issue more by accident
<ysionneau> ok :)
<ysionneau> good to have feedbacks !
<ysionneau> as always you catch nice issues
bhamilton has quit [Quit: Leaving.]
bhamilton has joined #milkymist
kilae has joined #milkymist
bhamilton has quit [Quit: Leaving.]
bhamilton has joined #milkymist
pablojavier has joined #milkymist
pablojavier has left #milkymist [#milkymist]
bhamilton has quit [Quit: Leaving.]
bhamilton has joined #milkymist
bhamilton has left #milkymist [#milkymist]
kilae has quit [Quit: ChatZilla 0.9.90.1 [Firefox 24.0/20130910160258]]
bhamilton has joined #milkymist
bhamilton has quit [Quit: Leaving.]
antgreen has quit [Ping timeout: 268 seconds]