* Re: [sisyphus] gcc -o test main.c
@ 2002-12-29 15:58 Dmitry V. Levin
2002-12-29 16:09 ` Dmitriy Gnidchenko
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2002-12-29 15:58 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
[-- Attachment #1: Type: text/plain, Size: 420 bytes --]
On Sun, Dec 29, 2002 at 05:36:45PM +0300, Dmitriy Gnidchenko wrote:
> простой тест на компиляцию программы
> командой gcc -o test main.c
>
> #include <stdio.h>
> int main(int argc, char *argv[])
> {
> if(geteuid() != 0) {
> fprintf(stderr,"Hello %d\n",geteuid());
> exit(1);
> }
> return 0;
> }
>
> Код как код, но если глянуть получившегося бинарника, вижу кучу
> мусора типа этого
man 1 strip :)
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] gcc -o test main.c
2002-12-29 15:58 [sisyphus] gcc -o test main.c Dmitry V. Levin
@ 2002-12-29 16:09 ` Dmitriy Gnidchenko
2002-12-29 16:15 ` Dmitry V. Levin
0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Gnidchenko @ 2002-12-29 16:09 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
On Sun, 29 Dec 2002, Dmitry V. Levin wrote:
> On Sun, Dec 29, 2002 at 05:36:45PM +0300, Dmitriy Gnidchenko
> wrote:
> > простой тест на компиляцию программы
> > командой gcc -o test main.c
> >
> > #include <stdio.h>
> > int main(int argc, char *argv[])
> > {
> > if(geteuid() != 0) {
> > fprintf(stderr,"Hello %d\n",geteuid());
> > exit(1);
> > }
> > return 0;
> > }
> >
> > Код как код, но если глянуть получившегося бинарника, вижу
> кучу
> > мусора типа этого
>
> man 1 strip :)
Это я знаю (уменьшился бинарник при этом в 2 раза), но если это
будет библиотека, то может стрипнуться и
имя библиотеки которое, должно использоваться ,
я уже наталкивался на такую фишку когда собирал E для системы.
тоже пострипал все бинарники и библиотечки.
в итоге пока не допер что стрипаньем удалилась одна важная запись
из либы.
Для частного случая это мелочи.
--
С Уважением
Дмитрий savithur@avatar.spb.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] gcc -o test main.c
2002-12-29 16:09 ` Dmitriy Gnidchenko
@ 2002-12-29 16:15 ` Dmitry V. Levin
2002-12-29 16:18 ` Dmitriy Gnidchenko
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2002-12-29 16:15 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
On Sun, Dec 29, 2002 at 07:09:05PM +0300, Dmitriy Gnidchenko wrote:
> > > Код как код, но если глянуть получившегося бинарника, вижу
> > кучу
> > > мусора типа этого
> >
> > man 1 strip :)
>
> Это я знаю (уменьшился бинарник при этом в 2 раза), но если это
> будет библиотека, то может стрипнуться и
> имя библиотеки которое, должно использоваться ,
strip(1):
--strip-unneeded
Remove all symbols that are not needed for relocation processing.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [sisyphus] gcc -o test main.c
2002-12-29 16:15 ` Dmitry V. Levin
@ 2002-12-29 16:18 ` Dmitriy Gnidchenko
0 siblings, 0 replies; 4+ messages in thread
From: Dmitriy Gnidchenko @ 2002-12-29 16:18 UTC (permalink / raw)
To: ALT Linux Sisyphus mailing list
On Sun, 29 Dec 2002, Dmitry V. Levin wrote:
> On Sun, Dec 29, 2002 at 07:09:05PM +0300, Dmitriy Gnidchenko
> wrote:
> > > > Код как код, но если глянуть получившегося бинарника,
> вижу
> > > кучу
> > > > мусора типа этого
> > >
> > > man 1 strip :)
> >
> > Это я знаю (уменьшился бинарник при этом в 2 раза), но если
> это
> > будет библиотека, то может стрипнуться и
> > имя библиотеки которое, должно использоваться ,
>
> strip(1):
> --strip-unneeded
> Remove all symbols that are not needed for relocation
> processing.
10х
Сейчас внимательней почитаю.
--
С Уважением
Дмитрий savithur@avatar.spb.ru
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-12-29 16:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-29 15:58 [sisyphus] gcc -o test main.c Dmitry V. Levin
2002-12-29 16:09 ` Dmitriy Gnidchenko
2002-12-29 16:15 ` Dmitry V. Levin
2002-12-29 16:18 ` Dmitriy Gnidchenko
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git