Unix Technical Forum

resources... hardened-gcc

This is a discussion on resources... hardened-gcc within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I would be very greatful if someone could point me a link, or any other kind of resources concerning ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 07:33 AM
Tomek
 
Posts: n/a
Default resources... hardened-gcc

I would be very greatful if someone could point me a link, or any other kind of
resources concerning hardened-gcc...

I've already found out that there is a tool called "hcc"; when I turned off
"hardened" then suddenly all programs started to compile properly (no asm
problems with 'BREG' class..; whatever it means) and I was finally capable of
debugging my own programs with gdb. But, when I "emerge world" last time and
had gcc and glibc recompiled I can't debug my programs any more, seeing that I
have no permission to access memory, whether I turned hardened options on or
off..

And if anyone could interpretate this:

# emerge -avD world

These are the packages that I would merge, in order:

Calculating world dependencies
*** Package in world file is not installed: sys-apps/fileutils

*** Package in world file is not installed: sys-apps/sh-utils

*** Package in world file is not installed: sys-apps/textutils
...done!
[blocks B ] sys-devel/hardened-gcc (from pkg sys-devel/gcc-3.3.3-r6)

Best wishes,

Ps Sorry for my English:>

--
/--[ M3ntos ]--[ GG# 4506061 ]--[ sotn3m@nospam.m3ntos.eu.org ]--\
\---------[ Przyjaźń to najpiękniejszy rodzaj miłości. ]---------/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 07:33 AM
PiotrAF
 
Posts: n/a
Default Re: resources... hardened-gcc

On Thu, 17 Jun 2004 14:41:27 +0000, Tomek wrote:

> I would be very greatful if someone could point me a link, or any other kind of
> resources concerning hardened-gcc...
>
> I've already found out that there is a tool called "hcc"; when I turned off
> "hardened" then suddenly all programs started to compile properly (no asm
> problems with 'BREG' class..; whatever it means) and I was finally capable of
> debugging my own programs with gdb. But, when I "emerge world" last time and
> had gcc and glibc recompiled I can't debug my programs any more, seeing that I
> have no permission to access memory, whether I turned hardened options on or
> off..


Thanks for the hint - you helped me with my nptl [message below] problem
after reemergeing gcc with "-hardened" glibc finally emerged Now I
have to wait and see if gcc will emerge back with hardened
>
> And if anyone could interpretate this:
>
> # emerge -avD world
>
> These are the packages that I would merge, in order:
>
> Calculating world dependencies
> *** Package in world file is not installed: sys-apps/fileutils
>
> *** Package in world file is not installed: sys-apps/sh-utils
>
> *** Package in world file is not installed: sys-apps/textutils
> ...done!
> [blocks B ] sys-devel/hardened-gcc (from pkg sys-devel/gcc-3.3.3-r6)
>


AFAIK you shouldn't have hardened-gcc no more - it is in normal gcc with
hardened flag and taht's why it is blocked by it. when I talked on irc
with the "hardened-guys" ) they adviosed my to unmerge hardened-gcc just
after chrooting to stage1
>
> Ps Sorry for my English:>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 07:33 AM
Tomek
 
Posts: n/a
Default Re: resources... hardened-gcc

On 2004-06-17, PiotrAF <piotraf@nospam.poczta.onet.pl> wrote:
> AFAIK you shouldn't have hardened-gcc no more - it is in normal gcc with
> hardened flag and taht's why it is blocked by it. when I talked on irc
> with the "hardened-guys" ) they adviosed my to unmerge hardened-gcc just
> after chrooting to stage1


I have "emerge -C hardened-gcc", and 'USE="-hardened" emerge gcc' to rebuild
gcc; I can debug with gdb, programs are compiling properly.
However I'd like to have a gcc with "hardened" option (as I understand that it
is an option for compiling gcc and hardened-gcc is another package) and
recompiling gcc each time is not a good idea.
Do anyone know any place with some information how to make gcc with
USE="hardened" to work properly ?

--
/--[ M3ntos ]--[ GG# 4506061 ]--[ sotn3m@nospam.m3ntos.eu.org ]--\
\---------[ Przyjaźń to najpiękniejszy rodzaj miłości. ]---------/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com