/[gentoo-projects]/pax-utils/scanelf.c
Gentoo

Diff of /pax-utils/scanelf.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.52 Revision 1.53
1/* 1/*
2 * Copyright 2003 Ned Ludd <solar@gentoo.org> 2 * Copyright 2003 Ned Ludd <solar@gentoo.org>
3 * Copyright 1999-2005 Gentoo Foundation 3 * Copyright 1999-2005 Gentoo Foundation
4 * Distributed under the terms of the GNU General Public License v2 4 * Distributed under the terms of the GNU General Public License v2
5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.52 2005/05/18 14:37:21 solar Exp $ 5 * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.53 2005/05/18 21:01:56 solar Exp $
6 * 6 *
7 ******************************************************************** 7 ********************************************************************
8 * This program is free software; you can redistribute it and/or 8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as 9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the 10 * published by the Free Software Foundation; either version 2 of the
33#include <getopt.h> 33#include <getopt.h>
34#include <assert.h> 34#include <assert.h>
35 35
36#include "paxelf.h" 36#include "paxelf.h"
37 37
38static const char *rcsid = "$Id: scanelf.c,v 1.52 2005/05/18 14:37:21 solar Exp $"; 38static const char *rcsid = "$Id: scanelf.c,v 1.53 2005/05/18 21:01:56 solar Exp $";
39#define argv0 "scanelf" 39#define argv0 "scanelf"
40 40
41 41
42 42
43/* prototypes */ 43/* prototypes */
110 if (EGET(phdr[i].p_type) == PT_GNU_STACK) { \ 110 if (EGET(phdr[i].p_type) == PT_GNU_STACK) { \
111 found = found_stack; \ 111 found = found_stack; \
112 off = 0; \ 112 off = 0; \
113 } else if (EGET(phdr[i].p_type) == PT_GNU_RELRO) { \ 113 } else if (EGET(phdr[i].p_type) == PT_GNU_RELRO) { \
114 found = found_relro; \ 114 found = found_relro; \
115 off = 3; \ 115 off = 4; \
116 } else \ 116 } else \
117 continue; \ 117 continue; \
118 if (be_quiet && !(EGET(phdr[i].p_flags) & PF_X)) \ 118 if (be_quiet && !(EGET(phdr[i].p_flags) & PF_X)) \
119 continue; \ 119 continue; \
120 memcpy(ret+off, gnu_short_stack_flags(EGET(phdr[i].p_flags)), 3); \ 120 memcpy(ret+off, gnu_short_stack_flags(EGET(phdr[i].p_flags)), 3); \

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

  ViewVC Help
Powered by ViewVC 1.1.20