Page 1 of 1

ever have an issues with libgcc in your kernel?

Posted: Sun Jul 29, 2012 6:20 pm
by ishkabible
so, I wanted to use 64-bit integers in my code and my linker gave me an odd error, something like "__udivi3 is not defined" so I looked it up and libgcc is used by gcc to do things there isn't an instruction for. so I figured it was just a simple binary that had no other dependencies and that I could just link libgcc.a. it seems to have worked quite well but I want to make sure it's not going to bite me in the future.

has anyone ever had an issue with linking libgcc into your kernel?

Re: ever have an issues with libgcc in your kernel?

Posted: Mon Jul 30, 2012 12:57 am
by xenos
I'm using libgcc for things like 64 bit arithmetics or integer division on some architectures and it never caused me any problems. I guess it's very common to do that.

Re: ever have an issues with libgcc in your kernel?

Posted: Mon Jul 30, 2012 2:26 am
by gerryg400
I haven't needed in my kernel yet, but I do use it in my boot loader. No problems at all.

Re: ever have an issues with libgcc in your kernel?

Posted: Mon Jul 30, 2012 10:41 am
by ishkabible
alright, sounds like it should work then :) thanks guys