You are not logged in.

#1 2006-07-03 12:56:55

user
Member
Registered: 2006-03-29
Posts: 465

Does arch-glibc-2.4 enable stackguard-randomization by def?

Hi, Arch-glibc compile farmer!

I want to know the configure setting had compiled glibc-2.4.
That's all.


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#2 2006-07-03 13:03:41

Chman
Member
Registered: 2006-01-31
Posts: 169
Website

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

Offline

#3 2006-07-03 13:06:49

user
Member
Registered: 2006-03-29
Posts: 465

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

Thanks for the link.

../configure --prefix=/usr
      --enable-add-ons=nptl,libidn --without-cvs
      --enable-kernel=2.6.6 --disable-profile
      --with-headers=/usr/include
      --enable-bind-now --with-tls --with-__thread

so it(--enable-stackguard-randomization) seems disabled by default..


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#4 2006-07-03 13:21:20

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

You sure about that? I was pretty sure that SSP was default for 4.1.x.

Offline

#5 2006-07-03 13:47:58

user
Member
Registered: 2006-03-29
Posts: 465

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

Gullible Jones wrote:

You sure about that? I was pretty sure that SSP was default for 4.1.x.

;-) SSP isn't SGR

in glibc-2.4 source dir
./configure --prefix=/usr --help
...

  --enable-stackguard-randomization
                          initialize __stack_chk_guard canary with a random
                          number at program start

...

so i can't guess whether it is enabled by default or not. no sign is there.


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#6 2006-07-03 13:59:01

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

Grr. This is annoying.

Offline

#7 2006-07-03 21:17:50

EAD
Member
Registered: 2006-03-11
Posts: 255

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

Why not enbale it by default and put other one in thte AUR?

Offline

#8 2006-07-03 22:42:49

user
Member
Registered: 2006-03-29
Posts: 465

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

may be 2 imaginary situations that i can guess.

1. performance loss
2. incompatibility


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

#9 2006-07-04 03:45:38

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Does arch-glibc-2.4 enable stackguard-randomization by def?

No... The reason is that you have to recompile *EVERYTHING* in order to get the effects of a change in GCC. This is the compiler, not the C runtime library, and any change in it will not take effect in other applications until those applications are compiled with the new version. Recompiling everything with SGR would require another gigantic upgrade from Testing, so it's not going to happen for a while, if ever.

(Remember, compiling takes time. Lots of time. And you have to watch out for bugs... And patch things... And take care not to miss anything... Basically, there's no such thing as "just recompiling everything".)

Offline

Board footer

Powered by FluxBB