aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-02-26 10:29:22 -0700
committerTom Tromey <tom@tromey.com>2023-03-08 12:11:49 -0700
commit100e3935319c862235239d06e963f8b807624d90 (patch)
tree404bfcf0c9305d56feb9ab89e1dc7d507f3911f9 /gdb/coffread.c
parent5992fb8541f1c108681468bb48640f0c7dec1709 (diff)
downloadfsf-binutils-gdb-100e3935319c862235239d06e963f8b807624d90.zip
fsf-binutils-gdb-100e3935319c862235239d06e963f8b807624d90.tar.gz
fsf-binutils-gdb-100e3935319c862235239d06e963f8b807624d90.tar.bz2
Remove OBJF_REORDERED
OBJF_REORDERED is set for nearly every object format. And, despite the ominous warnings here and there, it does not seem very expensive. This patch removes the flag entirely. Reviewed-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 45542bc..8be9a50 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -485,11 +485,6 @@ coff_symfile_init (struct objfile *objfile)
{
/* Allocate struct to keep track of the symfile. */
coff_objfile_data_key.emplace (objfile);
-
- /* COFF objects may be reordered, so set OBJF_REORDERED. If we
- find this causes a significant slowdown in gdb then we could
- set it in the debug symbol readers only when necessary. */
- objfile->flags |= OBJF_REORDERED;
}
/* This function is called for every section; it finds the outer