ever have an issues with libgcc in your kernel?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
ishkabible
Member
Member
Posts: 37
Joined: Wed Jan 05, 2011 7:35 pm

ever have an issues with libgcc in your kernel?

Post 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?
User avatar
xenos
Member
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?

Post 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.
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

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

Post by gerryg400 »

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 ?
ishkabible
Member
Member
Posts: 37
Joined: Wed Jan 05, 2011 7:35 pm

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

Post by ishkabible »

alright, sounds like it should work then :) thanks guys
Post Reply