~ubuntu-branches/ubuntu/precise/hardening-wrapper/precise

« back to all changes in this revision

Viewing changes to tests/Makefile.includes

  • Committer: Package Import Robot
  • Author(s): Kees Cook
  • Date: 2011-12-01 10:15:35 UTC
  • Revision ID: package-import@ubuntu.com-20111201101535-82h5v5b9j4m22v5g
Tags: 1.35
* debian/control: switch to "optional" priority so lintian can depend
  on hardening-includes.
* hardening-check: rewrite in Perl, add "--lintian" mode, to support
  fixing bug 650536.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
         $(filter-out $(HARDENING_DISABLE_PIE_CFLAGS_FILTER),$(CFLAGS)) \
17
17
         $(filter-out $(HARDENING_DISABLE_PIE_LDFLAGS_FILTER),$(LDFLAGS)) \
18
18
         -o $@ $<
19
 
        if sh ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
 
19
        if perl ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
20
20
endif
21
21
ifeq (1,$(DEB_BUILD_HARDENING_STACKPROTECTOR))
22
22
        # Disable stack protector
23
23
        $(CC) $(CFLAGS) $(LDFLAGS) $(HARDENING_DISABLE_STACKPROTECTOR_CFLAGS) -o $@ $<
24
 
        if sh ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
 
24
        if perl ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
25
25
endif
26
26
ifeq (1,$(DEB_BUILD_HARDENING_FORTIFY))
27
27
        # Disable fortify
28
28
        $(CC) $(CFLAGS) $(LDFLAGS) $(HARDENING_DISABLE_FORTIFY_CFLAGS) -o $@ $<
29
 
        if sh ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
 
29
        if perl ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
30
30
endif
31
31
ifeq (1,$(DEB_BUILD_HARDENING_RELRO))
32
32
        # Disable relro
33
33
        $(CC) $(CFLAGS) $(LDFLAGS) $(HARDENING_DISABLE_RELRO_LDFLAGS) -o $@ $<
34
 
        if sh ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
 
34
        if perl ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
35
35
endif
36
36
ifeq (1,$(DEB_BUILD_HARDENING_BINDNOW))
37
37
        # Disable bindnow
38
38
        $(CC) $(CFLAGS) $(LDFLAGS) $(HARDENING_DISABLE_BINDNOW_LDFLAGS) -o $@ $<
39
 
        if sh ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
 
39
        if perl ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
40
40
endif
41
41
        # Disable everything
42
42
        $(CC) \
48
48
         $(HARDENING_DISABLE_RELRO_LDFLAGS) \
49
49
         $(HARDENING_DISABLE_BINDNOW_LDFLAGS) \
50
50
         -o $@ $<
51
 
        if sh ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
 
51
        if perl ../hardening-check $(HARDENING_CHECK_ARGS) $@; then exit 1; fi
52
52
        readelf -ldW $@