gcc 3.4 nukes __guard
Jim Wilson
wilson@specifixinc.com
Wed May 19 23:09:00 GMT 2004
Travis Tilley wrote:
i have stack smashing protection patched into glibc, and all binaries compiled with stack protector need it:
gcc 3.4 nukes these symbols entirely. when i marked __guard and __guard_setup as __attribute__((used)), they became local instead of global... what am i doing wrong here?
There isn't enough info here to answer this. We need enough info to
reproduce the problem, preferably a small testcase. It is too much to
ask us to compile a patched glibc to try to reproduce a problem.
How is the __guard variable defined? How does the __guard variable get
into the application? Don't you also need a gcc patch for this? Maybe
the gcc patch has a bug?
Maybe you can ask the authors of the stack-smashing protection patch for
a version of the patch that works with gcc-3.4.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list