public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH] fix compilation issue in arm cortex a8
@ 2010-01-05 15:15 Michael Trimarchi
  2010-01-05 21:40 ` Tom
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Trimarchi @ 2010-01-05 15:15 UTC (permalink / raw)
  To: u-boot

Hi,

this patch fix the compilation issue. Step to reproduce:

add CONFIG_YAFFS2 in overo defconfig and compile u-boot

Regards
Michael


-------------- next part --------------
A non-text attachment was scrubbed...
Name: compilation.patch
Type: text/x-diff
Size: 754 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100105/eda00e71/attachment.patch 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [RFC PATCH] fix compilation issue in arm cortex a8
  2010-01-05 15:15 [U-Boot] [RFC PATCH] fix compilation issue in arm cortex a8 Michael Trimarchi
@ 2010-01-05 21:40 ` Tom
  2010-01-07  8:01   ` Michael Trimarchi
  2010-01-08 11:23   ` Michael Trimarchi
  0 siblings, 2 replies; 4+ messages in thread
From: Tom @ 2010-01-05 21:40 UTC (permalink / raw)
  To: u-boot

Michael Trimarchi wrote:
> Hi,
> 
> this patch fix the compilation issue. Step to reproduce:
> 
> add CONFIG_YAFFS2 in overo defconfig and compile u-boot
> 
> Regards
> Michael
> 
> 

This is not an OMAP specific problem.
This problem will happen on all ARM platforms.

It would be better to understand why these unwind calls are being made and
to just not do them.

As this is an eabi problem.
Adding

void *__exidx_start;
void *__exidx_end;

To eabi_compat.c also "fixes" the link problem.
This may be a better place for the change than all the linker scripts

In general cases where libgcc is problem, you can build with

USE_PRIVATE_LIBGCC=yes

Trying this unfortunately has another link problem

fs/yaffs2/libyaffs2.a(yaffscfg.o): In function `yaffs_StartUp':
	fs/yaffs2/yaffscfg.c:185: undefined reference to `__aeabi_uldivmod'

This function could be added to lib_arm/_udivsi3.S or a new file if you
feel it is appropriate.

Tom

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [RFC PATCH] fix compilation issue in arm cortex a8
  2010-01-05 21:40 ` Tom
@ 2010-01-07  8:01   ` Michael Trimarchi
  2010-01-08 11:23   ` Michael Trimarchi
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Trimarchi @ 2010-01-07  8:01 UTC (permalink / raw)
  To: u-boot

Tom wrote:
> Michael Trimarchi wrote:
>> Hi,
>>
>> this patch fix the compilation issue. Step to reproduce:
>>
>> add CONFIG_YAFFS2 in overo defconfig and compile u-boot
>>
>> Regards
>> Michael
>>
>>
>
> This is not an OMAP specific problem.
> This problem will happen on all ARM platforms.
>
> It would be better to understand why these unwind calls are being made 
> and
> to just not do them.
>
> As this is an eabi problem.
> Adding
>
> void *__exidx_start;
> void *__exidx_end;
>
> To eabi_compat.c also "fixes" the link problem.
> This may be a better place for the change than all the linker scripts
>
> In general cases where libgcc is problem, you can build with
>
> USE_PRIVATE_LIBGCC=yes
>
> Trying this unfortunately has another link problem
>
> fs/yaffs2/libyaffs2.a(yaffscfg.o): In function `yaffs_StartUp':
>     fs/yaffs2/yaffscfg.c:185: undefined reference to `__aeabi_uldivmod'
>
> This function could be added to lib_arm/_udivsi3.S or a new file if you
> feel it is appropriate.
>
Ok,
I'm going to provide a better patch.
> Tom
>
Best regards
Michael Trimarchi
>
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [RFC PATCH] fix compilation issue in arm cortex a8
  2010-01-05 21:40 ` Tom
  2010-01-07  8:01   ` Michael Trimarchi
@ 2010-01-08 11:23   ` Michael Trimarchi
  1 sibling, 0 replies; 4+ messages in thread
From: Michael Trimarchi @ 2010-01-08 11:23 UTC (permalink / raw)
  To: u-boot

Tom wrote:
> Michael Trimarchi wrote:
>> Hi,
>>
>> this patch fix the compilation issue. Step to reproduce:
>>
>> add CONFIG_YAFFS2 in overo defconfig and compile u-boot
>>
>> Regards
>> Michael
>>
>>
>
> This is not an OMAP specific problem.
> This problem will happen on all ARM platforms.
>
> It would be better to understand why these unwind calls are being made 
> and
> to just not do them.
>
> As this is an eabi problem.
> Adding
>
> void *__exidx_start;
> void *__exidx_end;
>
> To eabi_compat.c also "fixes" the link problem.
> This may be a better place for the change than all the linker scripts
>
> In general cases where libgcc is problem, you can build with
>
> USE_PRIVATE_LIBGCC=yes
>
> Trying this unfortunately has another link problem
>
> fs/yaffs2/libyaffs2.a(yaffscfg.o): In function `yaffs_StartUp':
>     fs/yaffs2/yaffscfg.c:185: undefined reference to `__aeabi_uldivmod'
>
> This function could be added to lib_arm/_udivsi3.S or a new file if you
> feel it is appropriate.
The problem is only releated to yaffs2 so I propose to use the do_div in 
that code
when the division is releated to mtd->size / <some> and add the two 
function in eabi file

Michael

>
> Tom
>
>
>
>
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-08 11:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-05 15:15 [U-Boot] [RFC PATCH] fix compilation issue in arm cortex a8 Michael Trimarchi
2010-01-05 21:40 ` Tom
2010-01-07  8:01   ` Michael Trimarchi
2010-01-08 11:23   ` Michael Trimarchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox