problem of non-pic code due to asm code.

Picca Frédéric-Emmanuel frederic-emmanuel.picca@synchrotron-soleil.Fr
Thu Aug 20 17:32:00 GMT 2009


hello

I am trying to package a programme for debian
http://tango-controls.org

now using the debian tools I found a problem of non-pic code
in the libtango library.

I attached the result of a scanelf -qT

as you can see there is a problem with for example
_128mm variable.

So to see what I mean I also attache the incriminated files
for example in jpeg_color_mmx.cpp

"psubw     mm2,_128mm          \n"
"psubw     mm3,_128mm          \n"


I tryed to replace this by

"psubw     mm2, %0             \n"
"psubw	   mm3, %0             \n"
.
.
.
: /* no output */
: "rm"(_128mm), ...

but I obtain that sort of error

jpeg_color_mmx.cpp: Assembler messages:
jpeg_color_mmx.cpp:487: Error: junk `(%ebx)' after expression
jpeg_color_mmx.cpp:488: Error: junk `(%ebx)' after expression

So how must I modify my these files to avoid this non-pic problem

thanks for your help

Frederic

ps:

The attached color_mmx file already contain my modification _128mm -> %0
I try the same with other _rxxx variables but the only result was
more junk (%ebs)

ps2: I already look with the mainstream autor but he was not really awair of this
pic non-pic issue.

-- 
GPG public key   1024D/A59B1171 2009-08-11
    fingerprint = 1688 A3D6 F0BD E4DF 2E6B  06AA B6A9 BA6A A59B 1171
uid  Picca Frédéric-Emmanuel <picca@synchrotron-soleil.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scanelf_output
Type: application/octet-stream
Size: 9463 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20090820/843612cf/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jpeg_color_mmx.cpp
Type: text/x-c++src
Size: 42070 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20090820/843612cf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jpeg_dct_mmx.cpp
Type: text/x-c++src
Size: 53907 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20090820/843612cf/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20090820/843612cf/attachment.sig>


More information about the Gcc-help mailing list