Opened 5 years ago

Closed 5 years ago

#1170 closed defect (fixed)

Windows builds: No effect of ASLR due to missing relocation information

Reported by: Christian Franke Owned by: Christian Franke
Priority: major Milestone: Release 7.1
Component: all Version: 7.0
Keywords: windows Cc:

Description

The exe files from recent smartmontools builds for Windows indicate ASLR compatibility but do not provide the required relocation information:

$ x86_64-w64-mingw32-objdump -p smartctl.exe
...
        relocations stripped

The default LDFLAGS set by the configure script do not work as expected with some recent versions of MinGW-w64 toolchain:

  • 7.3.0-11ubuntu1+20.2build1 on Ubuntu 18.04.1 (used for CircleCI and 7.0-1 release builds)
  • 7.4.0-1 on Cygwin

It worked in the past with:

  • 4.9.1-19+14.3 on Debian 8.9 (used for 6.6-1 release build)

Change History (2)

comment:1 by Christian Franke, 5 years ago

Owner: set to Christian Franke
Status: newaccepted

comment:2 by Christian Franke, 5 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.