ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Pavel Nakonechnyi <zorg1331@gmail.com>
To: ALT Linux Team development discussions <Devel@lists.altlinux.org>
Subject: [devel] relocation against `BN_div@@OPENSSL_1_1_0' in read-only section `.text' / creating a DT_TEXTREL in a shared object
Date: Wed, 7 Aug 2019 10:12:50 +0200
Message-ID: <CAPQ_kb+j9CxdKrSYKRc+gpd1EGsugiTtrA+cJ-HByr_iv5cu+g@mail.gmail.com> (raw)

Здравствуйте,

Получаю следующую ошибку при сборке для 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

             reply	other threads:[~2019-08-07  8:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-07  8:12 Pavel Nakonechnyi [this message]
2019-08-07  8:33 ` Gleb Fotengauer-Malinovskiy
2019-08-07  8:42   ` Pavel Nakonechnyi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPQ_kb+j9CxdKrSYKRc+gpd1EGsugiTtrA+cJ-HByr_iv5cu+g@mail.gmail.com \
    --to=zorg1331@gmail.com \
    --cc=Devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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