Search found 2121 matches

by srvaldez
Oct 08, 2019 21:23
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@MrSwiss
I went ahead and rebuilt the 32-bit version with the include that I mentioned to you viewtopic.php?p=264961#p264961
both versions have the include, for what it's worth, compiled with CFLAGS -fPIE -pie
fb1.07.1-win32-gcc920
fb1.07.1-win64-gcc920
by srvaldez
Oct 08, 2019 19:45
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@deltarho[1859]
the way I understand that statement is, stripped by default unless told otherwise
so I was thinking that with the options -fPIE -pie it would not strip the table.
by srvaldez
Oct 08, 2019 19:18
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@deltarho[1859]
sorry to read that, I think this is as far as this script kiddie can go.
I will go ahead and build with gcc-9.2.0 and post it here when done just in case someone is interested to try it
by srvaldez
Oct 08, 2019 19:03
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

how about -gen gcc -Wc -O2,-fPIE,-pie -Wl -dynamicbase
by srvaldez
Oct 08, 2019 19:01
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@MrSwiss I tried your include but when I run Unittest I get the error fbc-int\array.bas(36) error 42: Variable not declared, fb_ArrayGetDesc in 'dim ap1 as FBARRAY ptr = fb_ArrayGetDesc( a1() )' I changed the include to #ifndef __FBC_INT_ARRAY_BI__ #define __FBC_INT_ARRAY_BI__ # if __FB_LANG__ = &qu...
by srvaldez
Oct 08, 2019 18:54
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

I would try -gen gcc -Wc -O2,-fPIE,-pie -Wl -shared,-dynamicbase,-highentropyva
by srvaldez
Oct 08, 2019 18:28
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

try -gen gcc -Wc -O2 -Wl -fPIE,-shared,-pie,-dynamicbase,-highentropyva
you need to ucase PIE as in fPIE
deltarho[1859] wrote:@srvaldez
So, what are hoping for with your 10.0 build?

I added -fPIE -pie to the CFLASG so the fb libraries are built with that option
by srvaldez
Oct 08, 2019 18:14
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

thanks MrSwiss
by srvaldez
Oct 08, 2019 17:38
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@deltarho[1859]
give this a try fb1.07.1-win64-gcc10-20191006
by srvaldez
Oct 08, 2019 16:50
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@deltarho[1859]
stick around just a bit longer, let me build FB with the work-in-progress gcc-10 and see if it works, I will also build FB using gcc-9.2.0, who knows it might work
by srvaldez
Oct 08, 2019 16:09
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

thanks for the info Josep Roca
I have the 9.2.0 toolchain which was releases about a month ago, not sure it's the good release that the person was referring to
by srvaldez
Oct 08, 2019 15:15
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

Hi deltarho[1859]
please try FreeBASIC-1.07.1-win32 gcc-8.3 using the compiler and linker options that caused your app to crash
FreeBASIC-1.07.1-win64 gcc-8.3
[edit]
-gen gcc -Wc -fPIE,-pie -Wl -dynamicbase
by srvaldez
Oct 08, 2019 13:17
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

from that thread I gather that FB should be built with (compiler options) -gen gcc -Wc -fPIE and (linker options) -Wl -dynamicbase,-pie
I will have a try at it later, and see if I get lucky
by srvaldez
Oct 08, 2019 12:20
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

yes, I was told that only one of the switches will be passed on if you use multiple Wc or Wl
I jus downloaded PE Explorer, but being a complete noob to PE headers am not sure it will help much
by srvaldez
Oct 08, 2019 12:03
Forum: General
Topic: ASLR
Replies: 63
Views: 1862

Re: ASLR

@deltarho[1859]
when passing switches to gcc you only use Wc or Wl once (at least that's what I was told), for example
-gen gcc -Wc -O2,-pie -Wl -dynamicbase,-highentropyva

Go to advanced search