aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2018-06-28 08:33:17 +0200
committerPetr Tesarik <ptesarik@suse.cz>2018-06-28 08:35:34 +0200
commit291f9a9643f87fa4eb6a7c280eaa3877c11e3a1f (patch)
tree4318a3a5a93f7f82ada7a658b214783a334098fe /gdb/NEWS
parentd81a3eaff36b41ed67758a119a6864b50f60a60d (diff)
downloadbinutils-291f9a9643f87fa4eb6a7c280eaa3877c11e3a1f.zip
binutils-291f9a9643f87fa4eb6a7c280eaa3877c11e3a1f.tar.gz
binutils-291f9a9643f87fa4eb6a7c280eaa3877c11e3a1f.tar.bz2
Add an optional offset option to the "add-symbol-file" command
If all sections of a symbol file are loaded with a fixed offset, it is easier to specify that offset than listing all sections explicitly. There is also a similar option for "symbol-file". gdb/ChangeLog: 2018-06-28 Petr Tesarik <ptesarik@suse.cz> * symfile.c (add_symbol_file_command, _initialize_symfile): Add option "-o" to add-symbol-file-load to add an offset to each section's load address. * symfile.c (set_objfile_default_section_offset): New function. gdb/doc/ChangeLog: 2018-06-28 Petr Tesarik <ptesarik@suse.cz> * gdb.texinfo (Files): Document "add-symbol-file -o offset". gdb/testsuite/ChangeLog: 2018-06-28 Petr Tesarik <ptesarik@suse.cz> * gdb.base/relocate.exp: Add test for "add-symbol-file -o ".
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 54c0f1d..016796a 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -6,6 +6,10 @@
* The 'symbol-file' command now accepts an '-o' option to add a relative
offset to all sections.
+* Similarly, the 'add-symbol-file' command also accepts an '-o' option to add
+ a relative offset to all sections, but it allows to override the load
+ address of individual sections using '-s'.
+
* The 'add-symbol-file' command no longer requires the second argument
(address of the text section).