Jun 14, 2015 04:42 PM
(This post was last modified: Jun 14, 2015 04:56 PM by Writz.)
i'm using gcc version 4.8.2, i'm on linux, having trouble with making a stack of size 8MB(8388608 bytes), due to the default stack size limit, tried "--main-stacksize=8388608" , but it didn't work.
any suggestions ?
my makefile...
one more thing....
I ran this /usr/bin/ld --help | grep stack
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
--stack <size> Set size of the initial stack
--stack <size> Set size of the initial stack
so I tried to add -z stacksize=8388608 in the CPPFLAGS , but still no good, cuz the linker chooses to ignore it after giving me a warning.
any suggestions ?
my makefile...
Code
CPPFLAGS= -g -w
all: run clean
run: main.o lcf.o filz.o
g++ $(CPPFLAGS) main.o lcf.o filz.o -o run
main.o: main.cpp
g++ -c main.cpp
lcf.o: lcf.cpp
g++ -c lcf.cpp
filz.o: filz.cpp
g++ -c filz.cpp
clean:
rm *.oone more thing....
I ran this /usr/bin/ld --help | grep stack
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
-z execstack Mark executable as requiring executable stack
-z noexecstack Mark executable as not requiring executable stack
-z stacksize=SIZE Set size of stack segment
--stack <size> Set size of the initial stack
--stack <size> Set size of the initial stack
so I tried to add -z stacksize=8388608 in the CPPFLAGS , but still no good, cuz the linker chooses to ignore it after giving me a warning.
GIMME MY OLD AVATAR BACK :/

