{
struct elf_link_hash_entry *h;
- h = elf_link_hash_lookup (elf_hash_table (info), name,
- false, false, false);
+ /* NULL indicates __ehdr_start. */
+ if (name == NULL)
+ h = elf_hash_table (info)->hehdr_start;
+ else
+ h = elf_link_hash_lookup (elf_hash_table (info), name,
+ false, false, false);
if (h == NULL)
return;
}
}
- /* "__ehdr_start" will be defined by linker as a hidden symbol
- later if it is referenced and not defined. */
- elf_x86_linker_defined (info, "__ehdr_start");
+ /* Pass NULL for __ehdr_start which will be defined by
+ linker as a hidden symbol later if it is referenced and
+ not defined. */
+ elf_x86_linker_defined (info, NULL);
if (bfd_link_executable (info))
{