* [devel] relocation against `BN_div@@OPENSSL_1_1_0' in read-only section `.text' / creating a DT_TEXTREL in a shared object
@ 2019-08-07 8:12 Pavel Nakonechnyi
2019-08-07 8:33 ` Gleb Fotengauer-Malinovskiy
0 siblings, 1 reply; 3+ messages in thread
From: Pavel Nakonechnyi @ 2019-08-07 8:12 UTC (permalink / raw)
To: ALT Linux Team development discussions
Здравствуйте,
Получаю следующую ошибку при сборке для i586 архитектуры (задание #235612):
+ CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586
-mtune=generic -fPIC -DPIC -DNDEBUG -UDEBUG
-I../external/libunwind/include'
+ CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -march=i586
-mtune=generic -fPIC -DPIC -DNDEBUG -UDEBUG
-I../external/libunwind/include'
+ make -f /usr/src/RPM/BUILD/android-tools-8.1.0/debian/makefiles/libcrypto_utils.mk
make: Entering directory '/usr/src/RPM/BUILD/android-tools-8.1.0/system/core'
cc libcrypto_utils/android_pubkey.c -o libcrypto_utils.so.0
-Ilibcrypto_utils/include -Iinclude -Wl,-R/usr/lib/android/lib
-L/usr/src/RPM/BUILD/android-tools-8.1.0/out_lib -shared
-Wl,-soname,libcrypto_utils.so.0 -lcrypto
/usr/bin/ld.default: /usr/src/tmp/ccWWLSTs.o: warning: relocation
against `BN_div@@OPENSSL_1_1_0' in read-only section `.text'
/usr/bin/ld.default: warning: creating a DT_TEXTREL in a shared object
Это кусок ужасного набора кода из которого, при удаче, может
получиться рабочий ADB (собственно, для x86_64 получается).
Код собирается вроде как с -fPIC флагом, непонятно что именно делать в
данном случае.
--
WBR, Pavel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] relocation against `BN_div@@OPENSSL_1_1_0' in read-only section `.text' / creating a DT_TEXTREL in a shared object
2019-08-07 8:12 [devel] relocation against `BN_div@@OPENSSL_1_1_0' in read-only section `.text' / creating a DT_TEXTREL in a shared object Pavel Nakonechnyi
@ 2019-08-07 8:33 ` Gleb Fotengauer-Malinovskiy
2019-08-07 8:42 ` Pavel Nakonechnyi
0 siblings, 1 reply; 3+ messages in thread
From: Gleb Fotengauer-Malinovskiy @ 2019-08-07 8:33 UTC (permalink / raw)
To: ALT Linux Team development discussions
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
Hi,
On Wed, Aug 07, 2019 at 10:12:50AM +0200, Pavel Nakonechnyi wrote:
> Здравствуйте,
>
> Получаю следующую ошибку при сборке для i586 архитектуры (задание #235612):
> cc libcrypto_utils/android_pubkey.c -o libcrypto_utils.so.0
> -Ilibcrypto_utils/include -Iinclude -Wl,-R/usr/lib/android/lib
> -L/usr/src/RPM/BUILD/android-tools-8.1.0/out_lib -shared
> -Wl,-soname,libcrypto_utils.so.0 -lcrypto
В этой строчке gcc используется как комбайн, который делает временный
объектный файл, а потом его линкует. Флаг -fPIC сюда просто не попал по
какой-то причине.
--
glebfm
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [devel] relocation against `BN_div@@OPENSSL_1_1_0' in read-only section `.text' / creating a DT_TEXTREL in a shared object
2019-08-07 8:33 ` Gleb Fotengauer-Malinovskiy
@ 2019-08-07 8:42 ` Pavel Nakonechnyi
0 siblings, 0 replies; 3+ messages in thread
From: Pavel Nakonechnyi @ 2019-08-07 8:42 UTC (permalink / raw)
To: ALT Linux Team development discussions
ср, 7 авг. 2019 г. в 10:36, Gleb Fotengauer-Malinovskiy <glebfm@altlinux.org>:
>
> Hi,
>
> On Wed, Aug 07, 2019 at 10:12:50AM +0200, Pavel Nakonechnyi wrote:
> > Здравствуйте,
> >
> > Получаю следующую ошибку при сборке для i586 архитектуры (задание #235612):
>
> > cc libcrypto_utils/android_pubkey.c -o libcrypto_utils.so.0
> > -Ilibcrypto_utils/include -Iinclude -Wl,-R/usr/lib/android/lib
> > -L/usr/src/RPM/BUILD/android-tools-8.1.0/out_lib -shared
> > -Wl,-soname,libcrypto_utils.so.0 -lcrypto
>
> В этой строчке gcc используется как комбайн, который делает временный
> объектный файл, а потом его линкует. Флаг -fPIC сюда просто не попал по
> какой-то причине.
Благодарю! Действительно, нужен был свежий взгляд, причину нашел. :)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-08-07 8:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-07 8:12 [devel] relocation against `BN_div@@OPENSSL_1_1_0' in read-only section `.text' / creating a DT_TEXTREL in a shared object Pavel Nakonechnyi
2019-08-07 8:33 ` Gleb Fotengauer-Malinovskiy
2019-08-07 8:42 ` Pavel Nakonechnyi
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git