diff options
author | Petr Tesarik <ptesarik@suse.cz> | 2018-06-28 08:33:17 +0200 |
---|---|---|
committer | Petr Tesarik <ptesarik@suse.cz> | 2018-06-28 08:35:34 +0200 |
commit | 291f9a9643f87fa4eb6a7c280eaa3877c11e3a1f (patch) | |
tree | 4318a3a5a93f7f82ada7a658b214783a334098fe /gdb/NEWS | |
parent | d81a3eaff36b41ed67758a119a6864b50f60a60d (diff) | |
download | binutils-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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). |