Skip to contentSkip to conversation

_udivsi3 and _umodsi3 from the compiler libraries instead of libarm.a

U-Boot-Users Robert Whaley 2 participants 4 messages Feb 14, 2005 – Feb 15, 2005

lore
Share & tools
lore
#0 lore raw

I had a problem linking u-boot for an IXP425 (ARM) board. The problem was that _udivsi3 and _umodsi3 were being satisfied from the compiler libraries instead of libarm.a.

One fix that works is to change this line in the top level Makefile:

--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \

To this:

--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \

I'm concerned that this might break other stuff. Is there a better way to fix this?

Robert

#1 lore raw
Quoted 11 lines · In message <[email protected]> you wrote:

I had a problem linking u-boot for an IXP425 (ARM) board. The problem was that _udivsi3 and _umodsi3 were being satisfied from the compiler libraries instead of libarm.a.

One fix that works is to change this line in the top level Makefile:

--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \

To this:

--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \

Yes, this is what we changed in recent versions of U-Boot.

Quoted 2 lines

I'm concerned that this might break other stuff. Is there a better way to fix this?

Can you please explain your concerns? Why should this break "other stuff"? Why should there be a "better way", i. e. what is it that you dislike with this solution?

Best regards,

Wolfgang Denk

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
America has been discovered before, but it has always been hushed up.
- Oscar Wilde
#2 lore raw
Quoted 22 lines · Wolfgang Denk
Quoted 11 lines · In message <[email protected]> you wrote:

I had a problem linking u-boot for an IXP425 (ARM) board. The problem was that _udivsi3 and _umodsi3 were being satisfied from the compiler libraries instead of libarm.a.

One fix that works is to change this line in the top level Makefile:

--start-group $(LIBS) $(PLATFORM_LIBS) --end-group \

To this:

--start-group $(LIBS) --end-group $(PLATFORM_LIBS) \

Yes, this is what we changed in recent versions of U-Boot.

Quoted 2 lines

I'm concerned that this might break other stuff. Is there a better way to fix this?

Quoted 8 lines

Can you please explain your concerns? Why should this break "other stuff"? Why should there be a "better way", i. e. what is it that you dislike with this solution?

Best regards,

Wolfgang Denk

I was only concerned only because I wasn't sure that some system didn't depend on the compiler libraries being searched twice.

Sorry, I'm reinventing the wheel (I just downloaded this 2 weeks ago).

#3 lore raw
Quoted 3 lines · In message <[email protected]> you wrote:

I was only concerned only because I wasn't sure that some system didn't depend on the compiler libraries being searched twice.

They should not; I've never seen this in any default compiler configuration.

Quoted 1 line

Sorry, I'm reinventing the wheel (I just downloaded this 2 weeks ago).

Close, but not close enough ;-)

Best regards,

Wolfgang Denk

Signature · 4 lines
See us @ Embedded World, Nuremberg, Feb 22 - 24,  Hall 10.0 Booth 310
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"An open mind has but one disadvantage: it collects dirt."
                                                    - a saying at RPI