aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.cz>2018-06-28 08:32:27 +0200
committerPetr Tesarik <ptesarik@suse.cz>2018-06-28 08:35:34 +0200
commitd81a3eaff36b41ed67758a119a6864b50f60a60d (patch)
treee76d370a089eea74975ac1d92fdc91cc3dcdee50 /gdb/ChangeLog
parented6dfe517ee323ed631aa8b9816289ea35219409 (diff)
downloadgdb-d81a3eaff36b41ed67758a119a6864b50f60a60d.zip
gdb-d81a3eaff36b41ed67758a119a6864b50f60a60d.tar.gz
gdb-d81a3eaff36b41ed67758a119a6864b50f60a60d.tar.bz2
Make sure that sorting does not change section order
Symbol files may contain multiple sections with the same name. Section addresses specified by add-symbol-file are assigned to the corresponding BFD sections in addr_info_make_relative using sorted indexes of both vectors. Since the sort algorithm is not inherently stable, the comparison function uses sectindex to maintain the original order. However, add_symbol_file_command uses zero for all sections, so if the user specifies multiple sections with the same name, they will be assigned randomly to symbol file sections with the same name. gdb/ChangeLog: 2018-06-28 Petr Tesarik <ptesarik@suse.cz> * symfile.c (add_symbol_file_command): Make sure that sections
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f17c1a1..bd19de9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+ * symfile.c (add_symbol_file_command): Make sure that sections
+ with the same name are sorted in the same order.
+
+2018-06-28 Petr Tesarik <ptesarik@suse.cz>
+
* symfile.c (add_symbol_file_command, _initialize_symfile): Do not
require the second argument. If omitted, load sections at the
addresses specified in the file.