aboutsummaryrefslogtreecommitdiff
path: root/ld/plugin.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-10-25 06:22:50 +0000
committerAlan Modra <amodra@gmail.com>2010-10-25 06:22:50 +0000
commitbc110b6e40c95d47f7d52ca7b685a2d96248d765 (patch)
tree80e0b0fae1dea36b8f411145382a6f4f3627c5b6 /ld/plugin.c
parentfc1cfaa5f1d3c603bac8efb83128747281894b6e (diff)
downloadgdb-bc110b6e40c95d47f7d52ca7b685a2d96248d765.zip
gdb-bc110b6e40c95d47f7d52ca7b685a2d96248d765.tar.gz
gdb-bc110b6e40c95d47f7d52ca7b685a2d96248d765.tar.bz2
* plugin.c (plugin_get_ir_dummy_bfd): Set bfd_use_reserved_id.
Formatting.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r--ld/plugin.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/ld/plugin.c b/ld/plugin.c
index efc520f..f03932c 100644
--- a/ld/plugin.c
+++ b/ld/plugin.c
@@ -224,16 +224,18 @@ bfd *
plugin_get_ir_dummy_bfd (const char *name, bfd *srctemplate)
{
asection *sec;
- bfd *abfd = bfd_create (
- concat (name, IRONLY_SUFFIX, (const char *)NULL),
- srctemplate);
+ bfd *abfd;
+
+ bfd_use_reserved_id = 1;
+ abfd = bfd_create (concat (name, IRONLY_SUFFIX, (const char *)NULL),
+ srctemplate);
bfd_set_arch_info (abfd, bfd_get_arch_info (srctemplate));
bfd_make_writable (abfd);
/* Create a minimal set of sections to own the symbols. */
sec = bfd_make_section_old_way (abfd, ".text");
bfd_set_section_flags (abfd, sec,
- SEC_CODE | SEC_HAS_CONTENTS | SEC_READONLY
- | SEC_ALLOC | SEC_LOAD | SEC_KEEP);
+ (SEC_CODE | SEC_HAS_CONTENTS | SEC_READONLY
+ | SEC_ALLOC | SEC_LOAD | SEC_KEEP));
sec->output_section = sec;
sec->output_offset = 0;
return abfd;