Log of /pax-utils/scanelf.c
Parent Directory
|
Revision Log
Revision
1.252 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Nov 18 07:39:45 2012 UTC
(6 months ago)
by
vapier
Branch:
MAIN
Changes since
1.251: +2 -7 lines
Diff to
previous 1.251
scanelf/pspax: drop PT_LOAD counts since more than "normal" is not a bug and is semi-common with some targets, and the warning has out lived its usefulness -- it was added as an initial sanity check to get a feel for the real world
Revision
1.244 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 29 06:21:36 2012 UTC
(12 months, 3 weeks ago)
by
vapier
Branch:
MAIN
Changes since
1.243: +26 -10 lines
Diff to
previous 1.243
when looking for symbol sections, ignore ones labeled NOBITS as that means they dont have any actual data (like in split debug files) #411023 by Mark
Revision
1.234 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Oct 13 04:49:30 2011 UTC
(19 months, 1 week ago)
by
vapier
Branch:
MAIN
Changes since
1.233: +99 -8 lines
Diff to
previous 1.233
scanelf: support scanning for strings in ELFs that lack section headers by looking up the string tables via dynamic tags
Revision
1.219 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Dec 6 20:43:48 2010 UTC
(2 years, 5 months ago)
by
vapier
Branch:
MAIN
Changes since
1.218: +8 -8 lines
Diff to
previous 1.218
use normal glob funcs rather than hardcoding 64bit vers since _GNU_SOURCE should transparently rewrite these to 64bit when feasible
Revision
1.208 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 31 17:58:37 2009 UTC
(4 years, 3 months ago)
by
grobian
Branch:
MAIN
Changes since
1.207: +3 -3 lines
Diff to
previous 1.207
For bug #249731, add an xstrndup wrapper, and implement strndup on hosts that don't have it, based on the strndup implementation of sandbox, with a little change to make it C90 compliant.
Revision
1.198 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 17 18:09:55 2008 UTC
(4 years, 6 months ago)
by
flameeyes
Branch:
MAIN
Changes since
1.197: +10 -20 lines
Diff to
previous 1.197
Remove the half-assed versioned_symname support.
Matching against versioned symbol is possible (when the file is not
stripped, for now) by using the regular expression matching (-g).
Revision
1.197 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Nov 17 18:03:38 2008 UTC
(4 years, 6 months ago)
by
flameeyes
Branch:
MAIN
Changes since
1.196: +32 -15 lines
Diff to
previous 1.196
Rewrite symbol matching code in scanelf.
The previous code was entirely broken when trying to match symbols in
unstripped binaries when giving multiple symbols as target.
The new code differs from the old one in quite a few ways:
- debug output when -g option is passed is disabled in the code
(hacky, but still better than before!);
- regular expression matching is actually used when -g option is
passed;
- by default, the symbol name is tested against the symbol name
without version; no-version symbol name matching is possible by
using the -g option and adding a final $;
- multiple symbols and single symbols are handled in the same way so
that there is no more difference between them;
- the returned symbol name is the actual symbol name as found in the
file, so includes the version when the file is not stripped.
While this means that there are some minimal differences between the
previous code, it's arguable that this code is less buggy and more
consistent than the one before.
Revision
1.195 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Oct 22 15:20:21 2008 UTC
(4 years, 7 months ago)
by
flameeyes
Branch:
MAIN
Changes since
1.194: +6 -2 lines
Diff to
previous 1.194
Avoid crashes when scanning files with "corrupt symbols".
Instead of dereferencing sym without checking, stop as soon as the
pointer goes out of the ELF file range.
Revision
1.194 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Mon Sep 29 06:05:55 2008 UTC
(4 years, 7 months ago)
by
vapier
Branch:
MAIN
Changes since
1.193: +3 -2 lines
Diff to
previous 1.193
fix by Fabian Groffen to make sure default output format starts off initialized before we start strcating it #236539
Revision
1.185 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Aug 18 04:59:32 2007 UTC
(5 years, 9 months ago)
by
vapier
Branch:
MAIN
Changes since
1.184: +7 -7 lines
Diff to
previous 1.184
as pointed out by swegner, dont scan PHDRs that dont actually have a filesize (avoids scanning split debug info)
Revision
1.161 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Nov 28 03:55:57 2006 UTC
(6 years, 5 months ago)
by
vapier
Branch:
MAIN
Changes since
1.160: +15 -18 lines
Diff to
previous 1.160
pass the stat struct down to scanelf_file() from scanelf_dir() so we dont run stat() twice on every file
Revision
1.160 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Nov 23 23:50:33 2006 UTC
(6 years, 6 months ago)
by
solar
Branch:
MAIN
Changes since
1.159: +3 -4 lines
Diff to
previous 1.159
Ludwig Nussel wrote: SuSE Linux includes /etc/ld.so.conf.d/*.conf by default but there are no files in there by default. Attached patch prevents scanelf from aborting.
Revision
1.142 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 10 22:45:08 2006 UTC
(7 years ago)
by
kevquinn
Branch:
MAIN
Changes since
1.141: +115 -44 lines
Diff to
previous 1.141
Process QA_TEXTRELS and QA_EXECSTACK, whitespace-separated lists of
${D}-relative exemptions from textrel and executable stack (i.e. PF_X on
PT_GNU_STACK) checks, so portage can hand this off to scanelf (bug #131779)
Revision
1.141 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 23 15:24:38 2006 UTC
(7 years, 1 month ago)
by
flameeyes
Branch:
MAIN
Changes since
1.140: +64 -6 lines
Diff to
previous 1.140
Implement function to lookup into ld-elf.so.hints file on FreeBSD and DragonFly, change to GLIBC/UCLIBC conditionals access to ld.so.conf and ls.so.cache (should work on GNU/kFreeBSD).
Revision
1.136 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Mar 17 15:27:00 2006 UTC
(7 years, 2 months ago)
by
solar
Branch:
MAIN
Changes since
1.135: +6 -4 lines
Diff to
previous 1.135
- add invert matching for section headers from spanky for flameeyes. Example: scanelf -B -k \!.symtab /usr/lib/debug -Rq -F%F#k
Revision
1.129 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Feb 18 15:51:11 2006 UTC
(7 years, 3 months ago)
by
solar
Branch:
MAIN
Changes since
1.128: +18 -15 lines
Diff to
previous 1.128
- Make -E take strings vs just numerics. Fixed off by one in ld.so.conf include file handling(Reported by PaX autho.r). Made sure we only set ei pax flags when etype is ET_EXEC || ET_DYN. Updated README, man page
Revision
1.127 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Fri Feb 17 07:13:54 2006 UTC
(7 years, 3 months ago)
by
solar
Branch:
MAIN
Changes since
1.126: +88 -24 lines
Diff to
previous 1.126
- added the -z/--setpax flags. PT_PAX_FLAGS flags start off with with ---xe- ; EI_PAX is not done yet. Renamed the reference to elmer fudd back.
Revision
1.124 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Feb 16 03:07:44 2006 UTC
(7 years, 3 months ago)
by
solar
Branch:
MAIN
Changes since
1.123: +64 -27 lines
Diff to
previous 1.123
- add -k/--section <arg> flag so we can quickly identify executables that contain a given section by name
Revision
1.120 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Feb 5 03:01:30 2006 UTC
(7 years, 3 months ago)
by
solar
Branch:
MAIN
Changes since
1.119: +24 -11 lines
Diff to
previous 1.119
- add ability to scan files based on bits via new -M option. syntax is -M 32 or -M 64 ; invalid numerics are ignored
Revision
1.117 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jan 28 19:47:47 2006 UTC
(7 years, 3 months ago)
by
solar
Branch:
MAIN
Changes since
1.116: +4 -3 lines
Diff to
previous 1.116
- skip multi load scan checks if ehdr->e_type is not ET_DYN or ET_EXEC. Make 'make debug' build with -g3 -nopie
Revision
1.102 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jan 11 01:12:12 2006 UTC
(7 years, 4 months ago)
by
vapier
Branch:
MAIN
Changes since
1.101: +31 -23 lines
Diff to
previous 1.101
improve rpath output thanks to Ludwig Nussel and touchup the rpath fixing code to handle some corner cases
Revision
1.101 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 10 01:40:15 2006 UTC
(7 years, 4 months ago)
by
vapier
Branch:
MAIN
Changes since
1.100: +50 -6 lines
Diff to
previous 1.100
add support for automatically "fixing" insecure runpaths and removing the executable bit from stack/load program headers
Revision
1.100 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Tue Jan 10 01:38:17 2006 UTC
(7 years, 4 months ago)
by
vapier
Branch:
MAIN
Changes since
1.99: +9 -8 lines
Diff to
previous 1.99
make sure we warn about zero length rpaths and that we dont break out of the rpath checking too early. also dont bother duping the arg for the -f option
Revision
1.97 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Dec 29 14:03:25 2005 UTC
(7 years, 4 months ago)
by
vapier
Branch:
MAIN
Changes since
1.96: +35 -13 lines
Diff to
previous 1.96
touchup lookup_cache_lib() func a bit by plugging some memleaks, adding some comments, and handling 64/32 bit multilib systems
Revision
1.82 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Jun 19 05:39:31 2005 UTC
(7 years, 11 months ago)
by
vapier
Branch:
MAIN
Changes since
1.81: +62 -67 lines
Diff to
previous 1.81
change textrel scanner to check .text section instead of PT_LOAD ... also update -a to not include bind/interp info
Revision
1.77 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed Jun 8 05:43:01 2005 UTC
(7 years, 11 months ago)
by
vapier
Branch:
MAIN
Changes since
1.76: +39 -30 lines
Diff to
previous 1.76
make sure REL is an offset inside the symtab before using and create a func to pick the better sym/tab headers based on size
Revision
1.73 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Jun 4 13:52:54 2005 UTC
(7 years, 11 months ago)
by
solar
Branch:
MAIN
Changes since
1.72: +20 -20 lines
Diff to
previous 1.72
- Lets rename *stack* to phdr as the scope of the function has changed quite a bit from initial creation
Revision
1.63 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun May 29 18:44:48 2005 UTC
(7 years, 11 months ago)
by
solar
Branch:
MAIN
Changes since
1.62: +3 -4 lines
Diff to
previous 1.62
- added initial inconsistent state detection for pax flags. update some of the copyright headers removing myself and assigning over to the foundation. fixed bug in pf display 5 is not 4
Revision
1.61 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat May 28 22:09:36 2005 UTC
(7 years, 11 months ago)
by
solar
Branch:
MAIN
Changes since
1.60: +46 -10 lines
Diff to
previous 1.60
- make scanelf display the PT_PAX_FLAGS if they exist and fall back on EI_PAX if they dont as the kernel would.
Revision
1.49 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Wed May 18 04:08:30 2005 UTC
(8 years ago)
by
vapier
Branch:
MAIN
Changes since
1.48: +74 -24 lines
Diff to
previous 1.48
add support for scanning bind/lazy info, fix a few cases where bad ELFs would trigger infinite loops, and allow people to use debug --verbose with --quiet
Revision
1.33 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 10 15:15:40 2005 UTC
(8 years, 1 month ago)
by
solar
Branch:
MAIN
Changes since
1.32: +15 -9 lines
Diff to
previous 1.32
- free orig pointer locations and not ptr that has been incremented. Use puts/fputs in place of printf() when no format identifier is used. Don't scan symlinks in scanelf_file()
Revision
1.21 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sun Apr 3 16:02:25 2005 UTC
(8 years, 1 month ago)
by
solar
Branch:
MAIN
Changes since
1.20: +19 -4 lines
Diff to
previous 1.20
- added -o --file= option for redirecting stdout, use _POSIX_PATH_MAX vs PATH_MAX to mimic what is used elsewhere within the code.
Revision
1.20 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Sat Apr 2 19:06:36 2005 UTC
(8 years, 1 month ago)
by
solar
Branch:
MAIN
Changes since
1.19: +13 -15 lines
Diff to
previous 1.19
- work around problem freeing memory on uclibc systems by using a static buffer for path handling. this should also speed up the scanelf_dir function
Revision
1.13 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Thu Mar 31 18:34:01 2005 UTC
(8 years, 1 month ago)
by
solar
Branch:
MAIN
Changes since
1.12: +4 -4 lines
Diff to
previous 1.12
- added relro to header and uses puts vs printf for minor speed updated where printf was used without a format modifier
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.
| Sticky Tag: |
|