From: Alexey Tourbin <alexey.tourbin@gmail.com> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: Re: [devel] Предотвращение недолинковки Date: Sat, 30 May 2020 20:55:33 +0300 Message-ID: <CA+qzenmCgXmLMDeh4Enkzf+G6hL3X4uOEO2QY__1XX=itETKUw@mail.gmail.com> (raw) In-Reply-To: <4320ae6e-5a8e-84df-293e-74d4a7c4ac06@rosalinux.ru> On Sat, May 30, 2020 at 6:31 PM Mikhail Novosyolov <mikhailnov@altlinux.org> wrote: > Пытаюсь понять, как сделать так, чтобы verify_elf выдал ошибку при обнаружении unresolved symbols, но не ругался на non-LFS functions. > > Поставил "%global _verify_elf_method sctrict", получил: > verify-elf: ERROR: ./usr/bin/audacity: uses non-LFS functions: __open_2 __xstat fcntl fopen getrlimit open readdir ... > Задача - на этапе сборки убеждаться, что в рантайме не будет ошибки unresolved symbols. Зачем при этом проверять на соответствие LFS, не ясно. Поставить -Wl,--no-undefined не всегда вариант, т.к. многие апстримы допускают недолинковку плагинов. Мне кажется правильным в общем случае проверять, что /usr/bin/*, /usr/lib/*.so* не имеют недолинковки, а то, что лежит в нестандартных директориях вида /usr/lib64/xxx/*.so, не проверять, но при этом иметь возможность принудительно включить их проверку. Недолинковка может быть только в shared objects, грубо говоря в *.so*. Недолинковку в executables линкер пресекает на стадии линковки (поэтому поверять /usr/bin/* особого смысла нет). В частности и в audacity нет таких файлов, которые оправдывали бы проверку: $ rpmfile audacity-2.3.3-alt2.x86_64.rpm |grep ELF /usr/bin/audacity 100755 ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux 3.2.0, stripped
next prev parent reply other threads:[~2020-05-30 17:55 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-30 15:30 Mikhail Novosyolov 2020-05-30 17:32 ` Dmitry V. Levin 2020-05-30 22:16 ` Mikhail Novosyolov 2020-05-30 22:49 ` Dmitry V. Levin 2020-05-31 6:44 ` Ivan A. Melnikov 2020-05-30 17:55 ` Alexey Tourbin [this message] 2020-05-30 22:14 ` Mikhail Novosyolov
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='CA+qzenmCgXmLMDeh4Enkzf+G6hL3X4uOEO2QY__1XX=itETKUw@mail.gmail.com' \ --to=alexey.tourbin@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