ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <iv@altlinux.org>
To: devel@lists.altlinux.org
Subject: Re: [devel] --as-needed и --gc-section  was: Re: [sisyphus] systemd
Date: Mon, 31 Jan 2011 23:50:24 +0300
Message-ID: <20110131235024.3c768243@deimos.localdomain> (raw)
In-Reply-To: <20110131204228.GC20282@shutemov.name>

On Mon, 31 Jan 2011 22:42:28 +0200
"Kirill A. Shutemov" <kirill@shutemov.name> wrote:

> On Mon, Jan 31, 2011 at 11:05:49PM +0300, Ivan A. Melnikov wrote:
> > On Mon, 31 Jan 2011 21:39:04 +0300
> > Alexey Shabalin <a.shabalin@gmail.com> wrote:
> > [...]
> > > ibtool: link: x86_64-alt-linux-gcc -std=gnu99
> > > -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -pipe -Wall
> > > -O2 -pipe -Wall -W -Wextra -Wno-inline -Wvla -Wundef -Wformat=2
> > > -Wlogical-op -Wsign-compare -Wformat-security
> > > -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition
> > > -Wpointer-arith -Winit-self -Wdeclaration-after-statement
> > > -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes
> > > -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn
> > > -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing=2
> > > -Wwrite-strings -Wno-long-long -Wno-overlength-strings
> > > -Wno-unused-parameter -Wno-missing-field-initializers
> > > -Wno-unused-result -Wp,-D_FORTIFY_SOURCE=2 -ffast-math -fno-common
> > > -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden
> > > -ffunction-sections -fdata-sections -Wl,--as-needed
> > > -Wl,--gc-sections -o systemd
> > > src/systemd-main.o  ./.libs/libsystemd-core.a -lselinux -ldbus-1
> > > -lpthread -ludev -lwrap -lpam -lpam_misc -laudit -lcap -ldl -lrt
> > 
> > Читал.
> > 
> > > Правильно ли я понимаю, что пока не собраны все остальные
> > > библиотеки (libselinux, libdbus, libudev, и остальные ) с
> > > параметрами -ffunction-sections -fdata-sections
> > > -Wl,--gc-sections, то собирать systemd с gc-sections не имеет
> > > смысла?
> > 
> > Не вижу связи. Эти опции, насколько я понимаю, работают независимо
> > от зависимостей.
> > 
> > > Стоит ли к нашему gcc по умолчанию добавлять эти опции, как
> > > сделано для --as-needed? Правильно ли сейчас ругается
> > > lib.req: WARNING: /home/alex/tmp/systemd-buildroot/bin/systemd:
> > > overlinked libraries: /lib64/ld-linux-x86-64.so.2
> > > или lib.req ведёт себя не верно в этом случае.
> > 
> > Ругается правильно, и ведёт себя верно: фактически, программа
> > перелинкована. Другой вопрос, что не ясно, как с этим бороться, и
> > что (кроме отсутствия соответсвующей строки в логах сборки) это
> > даст.
> 
> Сходите к апстриму в багзиллу. Поставте меня в CC.
> 

Апстриму ld или systemd?

-- 
WBR,
Ivan A. Melnikov


  reply	other threads:[~2011-01-31 20:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 21:58   ` Ivan A. Melnikov
2011-01-29 11:29     ` REAL
2011-01-31 18:39       ` Alexey Shabalin
2011-01-31 20:05         ` Ivan A. Melnikov
2011-01-31 20:42           ` Kirill A. Shutemov
2011-01-31 20:50             ` Ivan A. Melnikov [this message]
2011-01-31 21:26               ` Kirill A. Shutemov
2011-04-06 10:21             ` [devel] " Dmitry V. Levin

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=20110131235024.3c768243@deimos.localdomain \
    --to=iv@altlinux.org \
    --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