Does it do the same if you optimize?

Seehttps://gcc.gnu.org/bugzilla/show_bug.cgi?id=71729

de Mike W9MDB

 

    On Thursday, January 18, 2018, 11:41:01 AM CST, Jaroslav Skarvada 
<jskar...@redhat.com> wrote:  
 
 

----- Original Message -----
> Out of curiosity I ran rpmlint on wsjtx and most of the output was pretty
> much what I expected but one line in particular caught my eye.
> 
> wsjtx.x86_64: W: executable-stack /usr/bin/jt9
> 
> $ rpmlint -I executable-stack
> executable-stack:
> The binary declares the stack as executable. Executable stack is usually an
> error as it is only needed if the code contains GCC trampolines or similar
> constructs which uses code on the stack. One common source for needlessly
> executable stack cases are object files built from assembler files which
> don't
> define a proper .note.GNU-stack section.
> 
> Is this due to fortran?
> 
> Thanks,
> Richard
> 

I debugged it down to the lib/decoder.f90.o.

With GCC/gfortran there is a workaround to compile it with:
$ gfortran -Wa,--noexecstack ...

But it is not portable and doesn't resolve the source of the problem.
It's better to fix it in the code. It seems there are no assembler
sources and I verified that the GNU_STACK is present. With C I know
compiler can create exec stacks if you use trampolines in the code.
But my Fortran skills are really lame. Could anybody help to locate
the source of the problem in Fortran sources?

thanks & regards

Jaroslav

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel
  
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to