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?
ever have an issues with libgcc in your kernel?
-
- Member
- Posts: 37
- Joined: Wed Jan 05, 2011 7:35 pm
- xenos
- Member
- Posts: 1121
- Joined: Thu Aug 11, 2005 11:00 pm
- Libera.chat IRC: xenos1984
- Location: Tartu, Estonia
- Contact:
Re: ever have an issues with libgcc in your kernel?
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?
I haven't needed in my kernel yet, but I do use it in my boot loader. No problems at all.
If a trainstation is where trains stop, what is a workstation ?
-
- Member
- Posts: 37
- Joined: Wed Jan 05, 2011 7:35 pm
Re: ever have an issues with libgcc in your kernel?
alright, sounds like it should work then thanks guys