require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&BFDLINK_H)) {
    eval 'sub BFDLINK_H () {1;}' unless defined(&BFDLINK_H);
    eval("sub strip_none () { 0; }") unless defined(&strip_none);
    eval("sub strip_debugger () { 1; }") unless defined(&strip_debugger);
    eval("sub strip_some () { 2; }") unless defined(&strip_some);
    eval("sub strip_all () { 3; }") unless defined(&strip_all);
    eval("sub discard_sec_merge () { 0; }") unless defined(&discard_sec_merge);
    eval("sub discard_none () { 1; }") unless defined(&discard_none);
    eval("sub discard_l () { 2; }") unless defined(&discard_l);
    eval("sub discard_all () { 3; }") unless defined(&discard_all);
    eval("sub bfd_link_generic_hash_table () { 0; }") unless defined(&bfd_link_generic_hash_table);
    eval("sub bfd_link_elf_hash_table () { 1; }") unless defined(&bfd_link_elf_hash_table);
    eval("sub bfd_link_hash_new () { 0; }") unless defined(&bfd_link_hash_new);
    eval("sub bfd_link_hash_undefined () { 1; }") unless defined(&bfd_link_hash_undefined);
    eval("sub bfd_link_hash_undefweak () { 2; }") unless defined(&bfd_link_hash_undefweak);
    eval("sub bfd_link_hash_defined () { 3; }") unless defined(&bfd_link_hash_defined);
    eval("sub bfd_link_hash_defweak () { 4; }") unless defined(&bfd_link_hash_defweak);
    eval("sub bfd_link_hash_common () { 5; }") unless defined(&bfd_link_hash_common);
    eval("sub bfd_link_hash_indirect () { 6; }") unless defined(&bfd_link_hash_indirect);
    eval("sub bfd_link_hash_warning () { 7; }") unless defined(&bfd_link_hash_warning);
    eval("sub bfd_link_common_skip_none () { 0; }") unless defined(&bfd_link_common_skip_none);
    eval("sub bfd_link_common_skip_text () { 1; }") unless defined(&bfd_link_common_skip_text);
    eval("sub bfd_link_common_skip_data () { 2; }") unless defined(&bfd_link_common_skip_data);
    eval("sub bfd_link_common_skip_all () { 3; }") unless defined(&bfd_link_common_skip_all);
    eval("sub RM_NOT_YET_SET () { 0; }") unless defined(&RM_NOT_YET_SET);
    eval("sub RM_IGNORE () { 1; }") unless defined(&RM_IGNORE);
    eval("sub RM_GENERATE_WARNING () { 2; }") unless defined(&RM_GENERATE_WARNING);
    eval("sub RM_GENERATE_ERROR () { 3; }") unless defined(&RM_GENERATE_ERROR);
    eval 'sub LD_DEFINITION_IN_DISCARDED_SECTION () {1;}' unless defined(&LD_DEFINITION_IN_DISCARDED_SECTION);
    eval("sub bfd_undefined_link_order () { 0; }") unless defined(&bfd_undefined_link_order);
    eval("sub bfd_indirect_link_order () { 1; }") unless defined(&bfd_indirect_link_order);
    eval("sub bfd_data_link_order () { 2; }") unless defined(&bfd_data_link_order);
    eval("sub bfd_section_reloc_link_order () { 3; }") unless defined(&bfd_section_reloc_link_order);
    eval("sub bfd_symbol_reloc_link_order () { 4; }") unless defined(&bfd_symbol_reloc_link_order);
    eval 'sub BFD_ELF_VERSION_C_TYPE () {1;}' unless defined(&BFD_ELF_VERSION_C_TYPE);
    eval 'sub BFD_ELF_VERSION_CXX_TYPE () {2;}' unless defined(&BFD_ELF_VERSION_CXX_TYPE);
    eval 'sub BFD_ELF_VERSION_JAVA_TYPE () {4;}' unless defined(&BFD_ELF_VERSION_JAVA_TYPE);
}
1;
