/* ELF linking support for BFD.
- Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
+ Copyright 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
return false;
}
- s = bfd_make_section (abfd, bed->use_rela_p ? ".rela.plt" : ".rel.plt");
+ s = bfd_make_section (abfd,
+ bed->default_use_rela_p ? ".rela.plt" : ".rel.plt");
if (s == NULL
|| ! bfd_set_section_flags (abfd, s, flags | SEC_READONLY)
|| ! bfd_set_section_alignment (abfd, s, ptralign))
copy relocs. */
if (! info->shared)
{
- s = bfd_make_section (abfd, bed->use_rela_p ? ".rela.bss" : ".rel.bss");
+ s = bfd_make_section (abfd,
+ (bed->default_use_rela_p
+ ? ".rela.bss" : ".rel.bss"));
if (s == NULL
|| ! bfd_set_section_flags (abfd, s, flags | SEC_READONLY)
|| ! bfd_set_section_alignment (abfd, s, ptralign))
return true;
}
+
+/* Increase the index at which H will appear in the dynamic symbol
+ table by INCREMENT (which is really an `int *'). Called via
+ elf_link_hash_traverse. */
+
+boolean
+_bfd_elf_link_adjust_dynindx (h, increment)
+ struct elf_link_hash_entry *h;
+ PTR increment;
+{
+ if (h->dynindx != -1)
+ h->dynindx += *((int *) increment);
+
+ return true;
+}
\f
/* Create a special linker section, or return a pointer to a linker section already created */