|
Nick Clifton |
c4cfb3 |
diff -rup binutils.orig/binutils/doc/binutils.texi binutils-2.29.1/binutils/doc/binutils.texi
|
|
Nick Clifton |
c4cfb3 |
--- binutils.orig/binutils/doc/binutils.texi 2017-11-01 11:44:12.360707737 +0000
|
|
Nick Clifton |
c4cfb3 |
+++ binutils-2.29.1/binutils/doc/binutils.texi 2017-11-01 11:45:38.702652255 +0000
|
|
Nick Clifton |
c4cfb3 |
@@ -4661,8 +4661,13 @@ given.
|
|
Nick Clifton |
c4cfb3 |
@itemx --all
|
|
Nick Clifton |
c4cfb3 |
Equivalent to specifying @option{--file-header},
|
|
Nick Clifton |
c4cfb3 |
@option{--program-headers}, @option{--sections}, @option{--symbols},
|
|
Nick Clifton |
c4cfb3 |
-@option{--relocs}, @option{--dynamic}, @option{--notes} and
|
|
Nick Clifton |
c4cfb3 |
-@option{--version-info}.
|
|
Nick Clifton |
c4cfb3 |
+@option{--relocs}, @option{--dynamic}, @option{--notes},
|
|
Nick Clifton |
c4cfb3 |
+@option{--version-info}, @option{--arch-specific}, @option{--unwind},
|
|
Nick Clifton |
c4cfb3 |
+@option{--section-groups} and @option{--histogram}.
|
|
Nick Clifton |
c4cfb3 |
+
|
|
Nick Clifton |
c4cfb3 |
+Note - this option does not enable @option{--use-dynamic} itself, so
|
|
Nick Clifton |
c4cfb3 |
+if that option is not present on the command line then dynamic symbols
|
|
Nick Clifton |
c4cfb3 |
+and dynamic relocs will not be displayed.
|
|
Nick Clifton |
c4cfb3 |
|
|
Nick Clifton |
c4cfb3 |
@item -h
|
|
Nick Clifton |
c4cfb3 |
@itemx --file-header
|
|
Nick Clifton |
c4cfb3 |
@@ -4758,6 +4763,9 @@ When displaying symbols, this option mak
|
|
Nick Clifton |
c4cfb3 |
symbol hash tables in the file's dynamic section, rather than the
|
|
Nick Clifton |
c4cfb3 |
symbol table sections.
|
|
Nick Clifton |
c4cfb3 |
|
|
Nick Clifton |
c4cfb3 |
+When displaying relocations, this option makes @command{readelf}
|
|
Nick Clifton |
c4cfb3 |
+display the dynamic relocations rather than the static relocations.
|
|
Nick Clifton |
c4cfb3 |
+
|
|
Nick Clifton |
c4cfb3 |
@item -x <number or name>
|
|
Nick Clifton |
c4cfb3 |
@itemx --hex-dump=<number or name>
|
|
Nick Clifton |
c4cfb3 |
Displays the contents of the indicated section as a hexadecimal bytes.
|
|
Nick Clifton |
c4cfb3 |
diff -rup binutils.orig/binutils/readelf.c binutils-2.29.1/binutils/readelf.c
|
|
Nick Clifton |
c4cfb3 |
--- binutils.orig/binutils/readelf.c 2017-11-01 11:44:12.357707774 +0000
|
|
Nick Clifton |
c4cfb3 |
+++ binutils-2.29.1/binutils/readelf.c 2017-11-01 11:45:11.901979878 +0000
|
|
Nick Clifton |
c4cfb3 |
@@ -7117,7 +7117,21 @@ process_relocs (FILE * file)
|
|
Nick Clifton |
c4cfb3 |
}
|
|
Nick Clifton |
c4cfb3 |
|
|
Nick Clifton |
c4cfb3 |
if (! found)
|
|
Nick Clifton |
c4cfb3 |
- printf (_("\nThere are no relocations in this file.\n"));
|
|
Nick Clifton |
c4cfb3 |
+ {
|
|
Nick Clifton |
c4cfb3 |
+ /* Users sometimes forget the -D option, so try to be helpful. */
|
|
Nick Clifton |
c4cfb3 |
+ for (i = 0; i < ARRAY_SIZE (dynamic_relocations); i++)
|
|
Nick Clifton |
c4cfb3 |
+ {
|
|
Nick Clifton |
c4cfb3 |
+ if (dynamic_info [dynamic_relocations [i].size])
|
|
Nick Clifton |
c4cfb3 |
+ {
|
|
Nick Clifton |
c4cfb3 |
+ printf (_("\nThere are no static relocations in this file."));
|
|
Nick Clifton |
c4cfb3 |
+ printf (_("\nTo see the dynamic relocations add --use-dynamic to the command line.\n"));
|
|
Nick Clifton |
c4cfb3 |
+
|
|
Nick Clifton |
c4cfb3 |
+ break;
|
|
Nick Clifton |
c4cfb3 |
+ }
|
|
Nick Clifton |
c4cfb3 |
+ }
|
|
Nick Clifton |
c4cfb3 |
+ if (i == ARRAY_SIZE (dynamic_relocations))
|
|
Nick Clifton |
c4cfb3 |
+ printf (_("\nThere are no relocations in this file.\n"));
|
|
Nick Clifton |
c4cfb3 |
+ }
|
|
Nick Clifton |
c4cfb3 |
}
|
|
Nick Clifton |
c4cfb3 |
|
|
Nick Clifton |
c4cfb3 |
return TRUE;
|