[Cbe-oss-dev] [PATCH 1/7]MARS/core: Fix host static lib

Kazunori Asayama asayama at sm.sony.co.jp
Thu Oct 30 14:54:08 EST 2008


Yuji Mano wrote:
> I'm assuming you mean that I should generate a separate PIC
> object for the pic_object I specify in the .lo?
> 
> Something like...
> 
> +mars_kernel.eo: ${MARS_KERNEL}
> +	$(EMBEDSPU) $(CFLAGS) mars_kernel_entry  $< $@
> +	$(EMBEDSPU) $(CFLAGS) -fPIC -DPIC mars_kernel_entry  $< .libs/$@
> +
> +.eo.lo:
> +	@echo "# Generated by ltmain.sh - GNU libtool" > $@
> +	@echo "pic_object='"$<"'" >> .libs/$@
> +	@echo "non_pic_object='"$<"'" >> $@

Yes.

> 
> But I think the -fPIC -DPIC is meaningless here as ppu-embedspu will
> output the same object anyway?
>
> # ppu-nm mars_kernel.eo
> 00000000 D mars_kernel_entry

I guess that is because the output currently need no relocation unless
it uses '_EAR_' symbols or __ea pointers (or more?) in the SPU ELF. I'm
not sure you may use the extensions or embedspu may generate such code
even without the extensions in the future...

-- 
(ASAYAMA Kazunori
  (asayama at sm.sony.co.jp))
t




More information about the cbe-oss-dev mailing list